nealyip/laravel-throttle-request-exception

Throw exception instead of direct output

v1.0.1 2017-09-19 09:46 UTC

This package is auto-updated.

Last update: 2024-05-22 02:05:19 UTC


README

This class will throw an exception instead of direct output, so that you can use the exception handler.

Install

from app/Http/Kernel.php replace or add

   'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
   to 
   'throttle' => \Nealyip\LaravelThrottleRequestException::class;