/** * 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->makeVisible(['card_brand', 'card_last_four', 'extra_billing_info']); }