Answer the question
In order to leave comments, you need to log in
How to make a router in Laravel for image caching?
Good afternoon, now I am doing image caching on laravel. For this purpose, I decided to try a router. Tell me how to make the router process requests correctly and find the image, if the image location itself can have several levels of nesting. For example: localhost/assets/catalog/wedr.png/resize/40/40
Now I made such a router
Route::get('/assets/{image?}/{type?}/{h?}/{w?}', 'Dev\[email protected]')->name('image.cache');
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