Support the ongoing development of Laravel.io →
posted 8 years ago
Views
Last updated 2 years ago.
0

so where are your scripts/css installed? in the resources? and then moved to public by elixir/gulp?

is ur root URL domain.com/ or domain.com/project?

what happens when you try

http://domain.com/project/public/bootstrap/css/bootstrap.min.css or

http://domain.com/public/project/bootstrap/css/bootstrap.min.css

0

Oh I know! I asked a similar question a few days ago!

shez was ahead of me but I'll try anyways. CSS-files must go in the public -directory, because if you put them in the resource -directory there will be a permisson issue. Users of your app can't directly access any other folder than public

0

thank for your reply I had to do it this way you suggested before it loads.

But is this proper by explicitly referencing the public folder as suggested ( http://domain.com/project/public/bootstrap/css/bootstrap.min.css) . I guess the resources (in public folder) should be loading without explicitly specifying the path ( http://domain.com/project/bootstrap/css/bootstrap.min.css)

0

public

  • css
    • bootstrap.min.css
<link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">
0

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.