akaunting / laravel-firewall

Web Application Firewall (WAF) package for Laravel
https://akaunting.com
MIT License
942 stars 106 forks source link

thow exception when middleware blocks the request #48

Closed yormy closed 2 years ago

yormy commented 2 years ago

This mr will allow the dev to thow an exception when the middleware triggers the block. The exception can be caught by the handler to render any specific actions and could also render a usefull message to the user when the block came from an ajax request

denisdulici commented 2 years ago

Thanks @yormy

yormy commented 2 years ago

thansk for merging so quickly