laravel 7 findOrFail code example Example: laravel findorfail $model = App\Flight::where('name', 'Mike')->firstOrFail();