Beispiel #1
0
 protected function loadData()
 {
     $this->vars['user'] = $user = BackendAuth::getUser();
     $this->vars['appName'] = BrandSetting::get('app_name');
     $this->vars['lastSeen'] = AccessLog::getRecent($user);
 }
 public function run()
 {
     Token::create(['token_name' => 'app_name', 'token_value' => BrandSetting::get('app_name'), 'token_scope' => TokensService::TOKEN_SCOPE_GLOBAL]);
     Token::create(['token_name' => 'app_tagline', 'token_value' => BrandSetting::get('app_tagline'), 'token_scope' => TokensService::TOKEN_SCOPE_GLOBAL]);
 }