take and offset from sub relation laravel 7 code example Example: limit laravel $posts = Post::all()->limit(10)->get();