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

guilhermecostam liked this thread

1

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

tvbeek, sujitkhanagale, guilhermecostam liked this reply

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>

sujitkhanagale liked this reply

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?

sujitkhanagale liked this reply

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

Sign in to participate in this thread!

Eventy

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.

© 2024 Laravel.io - All rights reserved.