After you have successfully and successfully configured your .htaccess ( like this one ), your method will work the way you would like it to work:
<link href="{{ asset('css/style.css') }}" rel="stylesheet">
Keep in mind that all client URL requests (requests for images, JavaScript / CSS files, JSON) will be affected by rewrite rules after setting up your .htaccess .
Also keep in mind that this may take some time after you see the changes. Cache can interfere with these changes. So, make sure you clear the Laravel cache:
In your command console, run the following commands individually:
php artisan cache:clear php artisan route:cache php artisan config:cache php artisan view:clear
And be sure to temporarily disable caching in your browser settings:
In Google Chrome: go to "Developer Tools"> open the "Network" tab> check the "Disable cache" box.
Other browsers: search the web for how to do this.
source share