I have a folder with images in it at example.com/img/
, and at the same time I have a route
get('img/{path}', 'ImageController@output');
But when I try going to example.com/img/someimagepath
and if image name is someimagepath
I get that image instead of firing route above.
Is there a way to make it fire route instead of requesting a file?
To be precise, I'm using https://github.com/thephpleague/glide Glide library