Example #1
0
 /**
  * Get the current user of the application.
  *
  * @return \Illuminate\Http\Response
  */
 public function getCurrentUser()
 {
     $user = kAuth::user();
     if (kAuth::usingTeams()) {
         $user->currentTeam;
     }
     return $user;
 }
Example #2
0
 /**
  * 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();
     });
 }