Skip to content

Commit

Permalink
use force create
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Oct 21, 2019
1 parent e6456fd commit e4d19f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Once the `api_token` column has been added to your `users` table, you are ready
*/
protected function create(array $data)
{
return User::create([
return User::forceCreate([
'name' => $data['name'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
Expand Down

0 comments on commit e4d19f5

Please sign in to comment.