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