Add version to a static file URL during load defined in the footer.blade file
06:21 01 Nov 2023

I have a footer.blade.php file where I load all the JavaScript files.

Now I want to append the version to the URL dynamically.

Where globalFileVersion is defined in a separate file which I will not cache using nginx.

I have tried a couple of ways to achieve this, but I failed every time.

First


Second


javascript php laravel