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

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

3

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

1

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

0

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

1

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 1 year ago.
0
Solution selected by @sujitkhanagale

Sign in to participate in this thread!

JetBrains

Your banner here too?

Moderators

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

Your logo here?

Laravel.io

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

© 2023 Laravel.io - All rights reserved.