thedevdojo / chatter

Chatter is a Simple Laravel Forum Package
https://devdojo.com/forums
MIT License
900 stars 294 forks source link

Asset folder problem - Link not found #227

Open ghost opened 6 years ago

ghost commented 6 years ago

This is your code: <link href="/vendor/devdojo/chatter/assets/vendor/spectrum/spectrum.css" rel="stylesheet">

My suggestion:

You should use helper asset() if you want to grab full url/link. For example: <link href="{{asset('/vendor/devdojo/chatter/assets/vendor/spectrum/spectrum.css')}}" rel="stylesheet">

Because there will be problem if one's laravel app is in subfolder such as http://mywebsite.com/thelaravelapp, and if you access http://mywebsite.com/thelaravelapp/forums, there will be a lot of problem (css not found, image not found, js not found, etc)