Set fillable array.

This commit is contained in:
Taylor Otwell
2014-12-01 21:59:46 -06:00
parent cb484a9d47
commit 8ce0d263c1
2 changed files with 8 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ class Registrar implements RegistrarContract {
*/
public function create(array $data)
{
return User::forceCreate([
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => bcrypt($data['password']),