photo/app/Models/Model.php
2019-11-27 21:30:43 +11:00

15 lines
229 B
PHP

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