Answer the question
In order to leave comments, you need to log in
How to change the path in Laravel routers if the query parameters are not found?
Route::get('/storage/previews/{photo}.{width}.{ts}.jpg.crop.{from}.jpg', '[email protected]')
->where('photo', '[0-9]+')
->where('from', '[0-9]+')
->where('width', '[0-9]+')
->where('ts', '[0-9]+')
->name('photo-preview-crop');
Answer the question
In order to leave comments, you need to log in
Collect the path in the controller, check for the existence of the file and return the one you think is necessary
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question