I\'m stuck on this what seems like a simple task.
I have a User that has many Shops that have many Products..
I\'m trying to get all the Pr
what you need is a relationship between the User Model and the Product Model ..
this is possible using hasManyThrough relationship ..
USER MODEL
public function products()
{
return $this->hasManyThrough('App\Product', 'App\Shop')
}
now, you can access all the user's products with
Auth::user()->products;