Retrieving Single Models / Aggregates: Not Found Exceptions

$model = App\Flight::findOrFail(1);

$model = App\Flight::where('legs', '>', 100)->firstOrFail();
Route::get('/api/flights/{id}', function ($id) {
    return App\Flight::findOrFail($id);
});

Retrieving Single Models / Aggregates: Not Found Exceptions — Structure map

Clickable & Draggable!

Retrieving Single Models / Aggregates: Not Found Exceptions — Related pages: