what is the use of findorfail in laravel code example Example: laravel findorfail $model = App\Flight::where('name', 'Mike')->firstOrFail();