Hi I want to gate 3 models against every brand and I use this code in my controller
$brand = Brand::with (['models' => function ($q){
$q->take(3);
}])->get()->toArray();
But it takes only 3 models for the first brand not for all Here is the image of my dd command SO tell me how to gat 3 models for all brands.