Check whether or not email is taken already upon registration
MODIFY
app/Http/Controllers/RegisterController.php
app/Http/Controllers/RegisterController.php
@@ -19,7 +19,7 @@ class RegisterController extends Controller {
public function store(Request $request) {
$request->validate([
'name' => 'required',
- 'email' => 'required|email',
+ 'email' => 'required|email|unique:users',
'password' => 'required|confirmed',
'currency' => 'required'
]);

Check whether or not email is taken already upon registration