Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel range query

$numToFind = 500;

if(Model::where('range_from', '>=', $numToFind)->where('range_to', '<=', $numToFind)->count()) {
    // It exists...
}
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #range #query
ADD COMMENT
Topic
Name
9+3 =