Replace deprecated method from Laravel 6.x

This commit is contained in:
Bubka 2021-11-22 01:27:14 +01:00
parent 77234ddc66
commit 3669dd7e31

View File

@ -36,7 +36,7 @@ public function register(UserStoreRequest $request)
$validated = $request->validated();
event(new Registered($user = $this->create($validated)));
$this->attemptLogin($request);
$this->guard()->login($user);
return response()->json([
'message' => 'account created',