Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This middleware is not excepting livewire models like 'password' #9

Open
WatheqAlshowaiter opened this issue Jan 2, 2023 · 2 comments

Comments

@WatheqAlshowaiter
Copy link

Hello @salkhwlani,

This package is great.. I want to ignore some fields like password, password_confirmation from transforming Arabic numbers to English.

It works fine with simple Laravel blade fields and ignores those fields, But it doesn't ignore fields that are inside Livewire components, so they are transformed against my expectations.

I hope you fix this problem so I can use this handy package and everyone who uses LIvewire.

@salkhwlani
Copy link
Owner

Hey @WatheqAlshowaiter

I didn't use Livewire seen the beta version of it.

If I remember correctly, Livewire encrypts the entire payload between the client and server, right?

@WatheqAlshowaiter
Copy link
Author

WatheqAlshowaiter commented Jan 19, 2023

@salkhwlani

If I remember correctly, Livewire encrypts the entire payload between the client and server, right?
Actually, I am not sure.

But on the other hand, the TrimStrings built-in middleware in Laravel ignores password etc. fields even when I am using Livewire, so I think there is a way for this excellent library to work in livewire too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants