limit with get all in laravel code example Example: limit laravel $posts = Post::all()->limit(10)->get();