Answer the question
In order to leave comments, you need to log in
How to prevent opening a link with a specific URL?
If you do this and go to localhost/images/id1/1561408555.jpg then it works
Route::get('/images/id{id}/{image}.jpg', function($image){
die;
})->where('image', '[0-9]+');
Route::get('/uploads/images/id{id}/{image}.jpg', function($image){
die;
})->where('image', '[0-9]+');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question