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

Middleware response field customization #46

Open
antimech opened this issue Aug 19, 2019 · 2 comments
Open

Middleware response field customization #46

antimech opened this issue Aug 19, 2019 · 2 comments
Milestone

Comments

@antimech
Copy link

antimech commented Aug 19, 2019

It would be cool to be able to change login for Laravel's default email here:

'login' => 'This account is blocked.',

And here:

'login' => 'This account is blocked.',

This way it would work out-of-the-box with Laravel.

Currently my workaround is middleware override.

@antonkomarev
Copy link
Member

There are many middleware issues at this moment, because its pretty hard to make them generic for all of the projects. Personally I write my own implementations for them and using these middlewares as an examples. I like your idea, it will be good to have them work with default Laravel installation out of the box.

It's a breaking change and could be done only in next major release.

@antonkomarev antonkomarev added this to the v5.0 milestone Aug 19, 2019
@antimech
Copy link
Author

@antonkomarev thanks!

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

No branches or pull requests

2 participants