/**
  * Register a new user.
  * @param  array $user
  * @return bool
  */
 public function register(array $user)
 {
     return $this->repository->create((array) $user);
 }
Exemple #2
0
 protected function createUser(array $data)
 {
     return $this->user->create(['username' => $data['username'], 'email' => $data['email'], 'first_name' => $data['first_name'], 'last_name' => $data['last_name'], 'country_id' => $data['country_id'], 'password' => bcrypt($data['password'])]);
 }