Пример #1
0
 public static function dump_error($msg)
 {
     if (Config::get('mysettings.dump_error')) {
         print_r($msg);
         exit;
     }
     Log::error('MError: ' . $msg);
 }
 /**
  * 获取系统管理员信息
  *
  * @return array
  */
 public static function getSystemAdmin()
 {
     $founder = explode(',', str_replace(' ', '', Config::get('auth.founder')));
     $founders = User::whereIn('id', $founder)->get();
     return $founders;
 }