Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Range limit with model

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?


Add offset parameter. More info here: