/** * Load the relationships for the given user. * * @param \Illuminate\Contracts\Auth\Authenticatable $user * @return \Illuminate\Contracts\Auth\Authenticatable */ protected function loadUserRelationships($user) { $user->load('subscriptions'); if (Spark::usesTeams()) { $user->load(['ownedTeams.subscriptions', 'teams.subscriptions']); $user->currentTeam(); } return $user; }