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 @


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


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.