photo/app/Models/Model.php

15 lines
239 B
PHP
Raw Permalink Normal View History

2019-11-27 10:30:43 +00:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model as EloquentModel;
class Model extends EloquentModel
{
2019-12-26 04:56:31 +00:00
protected $fillable = ['name','make_id'];
2019-11-27 10:30:43 +00:00
public function make()
{
return $this->belongsTo(Make::class);
}
}