From e4d19f5bbb85863fea521546506459030b0955d8 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 21 Oct 2019 08:48:37 -0500 Subject: [PATCH] use force create --- api-authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-authentication.md b/api-authentication.md index 692b6d9c..dbf0f631 100644 --- a/api-authentication.md +++ b/api-authentication.md @@ -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']),