/** * Get the current user of the application. * * @return \Illuminate\Http\Response */ public function getCurrentUser() { $user = Spark::user(); if (Spark::usingTeams()) { $user->currentTeam; } return $user->withHidden(['last_four', 'extra_billing_info']); }
/** * Get the current user of the application. * * @return \Illuminate\Http\Response */ public function getCurrentUser() { $user = Spark::user(); if (Spark::usingTeams()) { $user->currentTeam; } $user->subscriptions; return $user->withHidden(['card_brand', 'card_last_four', 'extra_billing_info']); }
/** * Get the tab configuration for the "teams" tab. * * @return \Laravel\Spark\Ux\Settings\Tab */ public function teams() { return new Tab('Teams', 'spark::settings.tabs.teams', 'fa-users', function () { return Spark::usingTeams(); }); }