Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.
/ ThrottleMiddleWare Public archive

change the default 'too many attempts' response view

License

Notifications You must be signed in to change notification settings

ctf0/ThrottleMiddleWare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

the new middleware extends the original so no losing functionality here, we simply changed the plain Too Many Attempts. to a custom view instead.

  • save file to app/Http/Middleware/ThrottleMiddleWare.php
  • Then go to routeMiddleware array in app/Http/Kernel.php and change
// before
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,

// after
'throttle' => \App\Http\Middleware\ThrottleMiddleWare::class,

** you can find the view file among others in https://github.com/ctf0/Error-Views

About

change the default 'too many attempts' response view

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages