I read the documentation for model to apply limit i.e.
$data = City::find(["limit"=>$start]);
here $start
is a variable.
I have to apply range like 0 to 100 as sql query select * from city limit 0,100
.
How do I do that?
I read the documentation for model to apply limit i.e.
$data = City::find(["limit"=>$start]);
here $start
is a variable.
I have to apply range like 0 to 100 as sql query select * from city limit 0,100
.
How do I do that?