1// Retrieve a model by its primary key...
2$flight = App\Flight::find(1);
3
4// Retrieve the first model matching the query constraints...
5$flight = App\Flight::where('active', 1)->first();
6
7// Shorthand for retrieving the first model matching the query constraints...
8$flight = App\Flight::firstWhere('active', 1);