mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-12 09:18:13 +01:00
Replace deprecated method from Laravel 6.x
This commit is contained in:
parent
77234ddc66
commit
3669dd7e31
@ -36,7 +36,7 @@ public function register(UserStoreRequest $request)
|
|||||||
$validated = $request->validated();
|
$validated = $request->validated();
|
||||||
event(new Registered($user = $this->create($validated)));
|
event(new Registered($user = $this->create($validated)));
|
||||||
|
|
||||||
$this->attemptLogin($request);
|
$this->guard()->login($user);
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'message' => 'account created',
|
'message' => 'account created',
|
||||||
|
Loading…
Reference in New Issue
Block a user