MattB
7 months ago
55
13
Laravel

Catching Wildcards in routes

Posted 7 months ago by MattB

Is there a way to route based on wildcards? For example, is there a way to route somewhere if the user types in an address from the images folder? I was trying the below but that didn't seem to work:

Route::get('/images/*', function(){
  return 'NOPE';
});

Please sign in or create an account to participate in this conversation.