Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel scope query

$model = AppModelsFlight::where('legs', '>', 100)
            ->firstOr(['id', 'legs'], function () {
                // ...
            });
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #scope #query
ADD COMMENT
Topic
Name
3+7 =