Question : types of queryies in laravel
Answered by : aqib-hanif
$affectedRows = User::where('votes', '>', 100)->update(['status' => 2]);
Source : https://laravel.com/docs/5.0/eloquent#insert-update-delete | Last Update : Sat, 27 Aug 22
Question : types of queryies in laravel
Answered by : aqib-hanif
$comments = Post::find(1)->comments()->where('title', '=', 'foo')->first();
Source : https://laravel.com/docs/5.0/eloquent#insert-update-delete | Last Update : Sat, 27 Aug 22