update data in laravel using model code example
Example 1: laravel findorfail
$model = App\Flight::where('name', 'Mike')->firstOrFail();
Example 2: laravel delete where
DB::table('users')->where('id', $id)->delete();
$model = App\Flight::where('name', 'Mike')->firstOrFail();
DB::table('users')->where('id', $id)->delete();