Fixed Integrity constraint violation: 19 UNIQUE
This commit is contained in:
parent
d2bda28105
commit
aadd01c4a2
|
@ -33,7 +33,7 @@ class RegisteredUserController extends Controller
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'name' => 'required|string|max:255',
|
'name' => 'required|string|max:255|unique:users',
|
||||||
'email' => 'required|string|email|max:255|unique:users',
|
'email' => 'required|string|email|max:255|unique:users',
|
||||||
'password' => 'required|string|confirmed|min:8',
|
'password' => 'required|string|confirmed|min:8',
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue