app/Http/Requests/UpdatePasswordRequest.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 [
            'oldPassword' => 'required|current_password',
            'newPassword' => [
                'required',
                'confirmed',
                Password::min(8)
                    ->numbers()
                    ->symbols()
            ]
        ];
    }
public function rules ( ) { return [ 'oldPassword' => 'required|current_password' , 'newPassword' => [ 'required' , 'confirmed' , Password :: min ( 8 ) -> numbers ( ) -> symbols ( ) ] ] ; }
Get the validation rules that apply to the request.
Get the validation rules that apply to the request .