Support the ongoing development of →
posted 11 months ago
Last updated by @sujitkhanagale 10 months ago.

Can you explain your question about what exactly your problem is?


You just need to write asset('css/main.css'); with your file link example with css file <link href=" {{ asset('css/main.css') }} "> </link>


i mean, when i started a laravel project in wamp server its showing "localhost/public/welcome" i want to make this like "localhost/welcome".


Do you want to create a virtual domain for your project on your local machine?


thank you to understand me. i got a way to fix this issue. i just created a .htaccess file and added the public folder path as a root folder, <code> RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] <code> and boom its working... thank you all again

Last updated 11 months ago.
Solution selected by @sujitkhanagale

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.