Support the ongoing development of →
Last updated by @sujitkhanagale 1 year ago.

guilhermecostam liked this thread


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

tvbeek, sujitkhanagale, guilhermecostam liked this reply


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

sujitkhanagale liked this reply


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?

sujitkhanagale liked this reply


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 2 years ago.
Solution selected by @sujitkhanagale

Sign in to participate in this thread!


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.

© 2024 - All rights reserved.