cybercog/laravel-ban

Middleware response field customization

antimech opened this issue · 2 comments

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.

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.