Using Laravel Elixir to version image assets
This blog post was originally published a little while ago. Please consider that it may no longer be relevant or even accurate.
I've not seen this documented, but you can easily use Laravel Elixir to version not just your stylesheets and scripts but also any images you have in your application. This means you don't have to go cache-busting your images manually when you push out an updated image.
You can start by placing your images into a resources/images
directory, which keeps them right alongside your other assets. Then you simply need to instruct your Gulpfile
to copy the images to the public
directory during compilation and then version them.