Closed Umfi closed 2 years ago
This change allows wildcards in the exclude routes. So it is not required anymore to add each single route. Instead we can write it like this.
'exclude' => [ '/analytics', '/admin', '/admin/*', ],
The code is based on the VerifyCsrfToken middleware, which can be found here: https://github.com/laravel/framework/blob/9.x/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php
Thanks for your contribution @Umfi ❤️ I'll take a look at this when I can 😁
Cc: @tomirons
Looks good to me, thanks again @Umfi 👍
This change allows wildcards in the exclude routes. So it is not required anymore to add each single route. Instead we can write it like this.
'exclude' => [ '/analytics', '/admin', '/admin/*', ],
The code is based on the VerifyCsrfToken middleware, which can be found here: https://github.com/laravel/framework/blob/9.x/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php