src/Traits/ShopCartTrait.php
public function scopeWhereCurrent($query)
    {
        if (Auth::guest()) return $query;
        return $query->whereUser(Auth::user()->shopId);
    }
public function scopeWhereCurrent($query)
    {
        if (Auth::guest()) return $query;
        return $query->whereUser(Auth::user()->shopId);
    }
Scope to current user cart.

@param \Illuminate\Database\Eloquent\Builder $query  Query.

@return \Illuminate\Database\Eloquent\Builder