Do you have access to change the apache root directory with your host? Then you should point that to the public folder which is the recommended way for security reasons.
Jul 8, 2016
3
Level 4
Laravel can't find my css and js.
Hello, i tryed to push my site online for testing purpouses.
I'm using some random free hosting site for my portfolio and it was confusing but i got it online. Everything seems to work except laravel can't find my css.
It tryes to find them @ domain.com/css/app.css but the right url is domain.com/public/css/app.css
Im using this type of url
I have pushed all my files public_html witch is default apache directory for my host.
I know i can set it like asset('public/css/app.css') but i think it should work like that too with some cfg.
Level 28
1 like
Please or to participate in this conversation.