Esempio n. 1
0
 /**
  * @return void
  */
 protected function createAdministrationUser()
 {
     $auth = $this->notadd->make('auth');
     $user = User::create(['name' => $this->data->get('admin_username'), 'email' => $this->data->get('admin_email'), 'password' => bcrypt($this->data->get('admin_password'))]);
     $auth->login($user);
     touch($this->notadd->storagePath() . '/framework/notadd/installed');
 }
Esempio n. 2
0
 /**
  * @param array $data
  * @return static
  */
 protected function create(array $data)
 {
     return User::create(['name' => $data['name'], 'email' => $data['email'], 'password' => bcrypt($data['password'])]);
 }