find and update in laravel eloquent code example
Example 1: laravel fillable
/**
* The attributes that are mass assignable.
*/
protected $fillable = [
'title',
'slug',
'body',
'image',
'published',
'comments_open'
];
Example 2: laravel update first
Model::where(['x' => 1, 'y' => 2])->first()->update([...]);