Skip to content
This repository was archived by the owner on Sep 10, 2020. It is now read-only.

Latest commit

 

History

History
14 lines (10 loc) · 535 Bytes

File metadata and controls

14 lines (10 loc) · 535 Bytes

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