withTrashed added

This commit is contained in:
vedatakd 2019-07-16 14:14:56 +03:00
parent 745dc3e725
commit a7cc8d9867

View File

@ -165,7 +165,7 @@ class UserAuthenticator
}
if ($users->findByEmail($all['email']) or $users->findByUsername($all['username'])) {
if (User::withTrashed()->where('email',$all['email'])->first() or User::withTrashed()->where('username',$all['username'])->first()) {
return response()->json(['status' => 'error', 'message' => 'This Username or Email Registered!']);
}
$opassword = str_random(8);