Beispiel #1
0
 /**
  * Run the database seeds.
  */
 public function run()
 {
     $users = $this->prepareUsers(config('laravel-auth.seeds.users', []));
     User::insert($users);
 }
Beispiel #2
0
 /**
  * Check if user is an administrator.
  *
  * @return bool
  */
 public function isAdmin()
 {
     return parent::isAdmin() || $this->hasRoleSlug(Role::ADMINISTRATOR);
 }