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