. Home Services Hire Developers Technology Offerings Industries Company Contact Us Free Quote
Our Services
We help world-recognized brands to navigate through their digital transformation journey by building industry-leading digital products.Case Studies
Explore how Agira delivered IT Solutions to Startups & Enterprises.Application Transformation Management
Technology Offerings
Leveraging cutting-edge technologies to build industry-leading digital products.Hire Team
Create your own agile squad with experienced developers just like your local team.Tech Stacks
Our Services
Leveraging cutting-edge technologies to build industry-leading digital products.Industries
Accolades
Preferred Solution Partner
. Home Services Hire Developers Technology Offerings Industries Company Contact Us Free Quote
Our Services
We help world-recognized brands to navigate through their digital transformation journey by building industry-leading digital products.Case Studies
Explore how Agira delivered IT Solutions to Startups & Enterprises.Application Transformation Management
Technology Offerings
Leveraging cutting-edge technologies to build industry-leading digital products.Hire Team
Create your own agile squad with experienced developers just like your local team.Tech Stacks
Our Services
Leveraging cutting-edge technologies to build industry-leading digital products.Industries
Accolades
Preferred Solution Partner

Toggle navigation
Say Hello!
×
Get In Touch!
Corporate Blogs
Tags:
Thoughts on
Leave a Comment
Thank you for Submitting the Comment
You have an Idea. We have the Solution.
We help business evolve with lates technologies and infrastructures tailored to their needs and market trends.
There is easy way to do it,
1. create new static function on you own helper
public static function getAutoVersion($file)
{
$filePath = public_path() . DS . $file;
if (!file_exists($filePath)) {
return ”;
}
$version = filemtime($filePath);
return ‘?v=’ . $version;
}
2. call this function on laravel core helper asset (for laravel version 5 or above)
path /vendor/laravel/framework/src/Illuminate/Foundation/helpers.php
assume that Webapp is your helper class
if (! function_exists(‘asset’)) {
/**
* Generate an asset path for the application.
*
* @param string $path
* @param bool $secure
* @return string
*/
function asset($path, $secure = null)
{
return app(‘url’)->asset($path, $secure) . Webapp::getAutoVersion($path);
}
}