how to set the time limit in laravel during fetching the data from database code example Example: limit laravel $posts = Post::all()->limit(10)->get();