chore: code refactor via rector
This commit is contained in:
@@ -34,7 +34,7 @@ class Register extends Component
|
||||
|
||||
$validated['password'] = Hash::make($validated['password']);
|
||||
|
||||
event(new Registered(($user = User::create($validated))));
|
||||
event(new Registered(($user = User::query()->create($validated))));
|
||||
|
||||
Auth::login($user);
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ class ResetPassword extends Component
|
||||
// database. Otherwise we will parse the error and return the response.
|
||||
$status = Password::reset(
|
||||
$this->only('email', 'password', 'password_confirmation', 'token'),
|
||||
function ($user) {
|
||||
function ($user): void {
|
||||
$user->forceFill([
|
||||
'password' => Hash::make($this->password),
|
||||
'remember_token' => Str::random(60),
|
||||
|
||||
Reference in New Issue
Block a user