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