Summer Sale! All accounts are 50% off this week.

Ligonsker's avatar

How to many against any URL after certain URL part?

I want to block all access to anything after certain URL part (and unknown number of parameters), for example block access to:

route/param1/
route/param1/param2
route/param1/param2/param3
route/param1/param2/param3/file.txt

The following only matches the first part:

Route::get('test/{any}', function () {
0 likes
1 reply

Please or to participate in this conversation.