laravel model get fillab code example
Example 1: laravel fillable
/**
* The attributes that are mass assignable.
*/
protected $fillable = [
'title',
'slug',
'body',
'image',
'published',
'comments_open'
];
Example 2: laravel eloquent fill
$flight->fill(['name' => 'Flight 22']);