samedi 19 mai 2018

How to register a middleware to all routes with no exceptions?

I want to apply a middleware to any request to my server

this middleware should check for whitelisted Ips

registering the middleware to each single route is not a perfect solution

what if he navigated to non-implemented route like 404 Page

implemented routes

/r1

/r2

/r3

if he navigated to /4 for example - it will navigate to 404 page , but also in this case - I want to use the middleware



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2kaxV9O
via IFTTT

Aucun commentaire:

Enregistrer un commentaire