code: public function scopeWhereCurrent($query)
      {
          if (Auth::guest()) return $query;
          return $query->whereUser(Auth::user()->shopId);
      }
docs: Scope to current user cart.
  
  @param \Illuminate\Database\Eloquent\Builder $query  Query.
  
  @return \Illuminate\Database\Eloquent\Builder