photo/app/Models/Model.php
2019-12-26 15:56:31 +11:00

15 lines
239 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model as EloquentModel;
class Model extends EloquentModel
{
protected $fillable = ['name','make_id'];
public function make()
{
return $this->belongsTo(Make::class);
}
}