Automatic Assets CacheBust in Laravel (v4+, v5+)

there many packages including elixir that already does that but not in an efficient way and it needs more configure from your part, however the recommended method is to simply add


to the end of the asset, now this is much easier and you don’t need to do any extra work but this sadly requires you to manually add a number everytime you update the asset 😥.

so to tackle this i came up with a simple solution which automatically does that for you💃 🎉.

// before
{{ asset('css/style.css') }}

// after
{{ bustfy('css/style.css') }}

and you get something like


head over to github @


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.