Skip to content

Commit

Permalink
FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
amosmos committed Aug 23, 2017
1 parent eba013e commit 31b489e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Commands/CreateUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public function handle()

$user = new $model();

$model::fill([
'name' => $name,
'email' => $email,
'password' => bcrypt($password),
]);
$user->name = $name;
$user->email = $email;
$user->password = bcrypt($password);

$user->save();

$this->info('New user created!');
}
Expand Down

0 comments on commit 31b489e

Please sign in to comment.