app/Http/Requests/PasswordRequest.php
/**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
Get the validation rules that apply to the request.
@return array
Get the validation rules that apply to the request . @return array
public function rules()
    {
        return [
            'password_now' => 'required|string|min:8|max:25|current_password',
            'password' => 'required|string|min:8|max:25|different:password_now|confirmed|strong_password',
        ];
    }
public function rules ( ) { return [ 'password_now' => 'required|string|min:8|max:25|current_password' , 'password' => 'required|string|min:8|max:25|different:password_now|confirmed|strong_password' , ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .