JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "UpdateUserPassword-20260314154449.php"

Full Path: /home/markqprx/iniasli.pro/Auth/Fortify/UpdateUserPassword-20260314154449.php
File size: 946 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Common\Auth\Fortify;

use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\UpdatesUserPasswords;

class UpdateUserPassword implements UpdatesUserPasswords
{
    use PasswordValidationRules;

    public function update($user, array $input)
    {
        Validator::make(
            $input,
            [
                'current_password' => [
                    'required',
                    'string',
                    'current_password:web',
                ],
                'password' => $this->passwordRules(),
            ],
            [
                'current_password.current_password' => __(
                    'The provided password does not match your current password.',
                ),
            ],
        )->validateWithBag('updatePassword');

        $user
            ->forceFill([
                'password' => $input['password'],
            ])
            ->save();
    }
}