Change The Default ‘too many attempts’ Response In Laravel (v5.2+)

the current default response for the throttle middleware in laravel is a plain text as “too many attempts” :(.

so to change that to a more user friendly view i created this middleware which all it does is simply use a view instead of the plain text,
you can check it out @ https://github.com/ctf0/ThrottleMiddleWare

v5.5

the new version has more improvements over the older one & now it automatically check if there is a view or not internally.

also a good addition to the new build, you will now have some default error views @“/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views” in case you want to play with any,

Anyway, for an updated version of the middleware plz check https://github.com/ctf0/ThrottleMiddleWare/tree/5.5

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s