/** * Get the current user of the application. * * @return \Illuminate\Http\Response */ public function getCurrentUser() { $user = kAuth::user(); if (kAuth::usingTeams()) { $user->currentTeam; } return $user; }
/** * Get the tab configuration for the "teams" tab. * * @return \Kolimpri\Auth\Ux\Settings\Tab */ public function teams() { return new Tab('Teams', 'auth::settings.tabs.teams', 'fa-users', function () { return kAuth::usingTeams(); }); }