/**
  * Returns an empty error in case of non-existend database (i.e. when working with a newly deployed system).
  *
  * @return array|\Illuminate\Database\Eloquent\Collection|static[]
  */
 protected function getPermission()
 {
     try {
         return Permission::with('roles')->get();
     } catch (PDOException $e) {
         Log::warning('Permission table could not be found when trying to load permissions in AuthServiceProvider');
         return [];
     }
 }