find where laravel eloquent code example
Example 1: laravel findorfail
$model = App\Flight::where('name', 'Mike')->firstOrFail();
Example 2: laravel find query
$model = App\Models\Flight::where('legs', '>', 100)->firstOr(function () {
// ...
});