Answers for "laravel scope query"

PHP
1

laravel scope query

$model = App\Models\Flight::where('legs', '>', 100)
            ->firstOr(['id', 'legs'], function () {
                // ...
            });
Posted by: Guest on September-25-2020

Browse Popular Code Answers by Language