Support the ongoing development of Laravel.io →
Blade Views Laravel
Last updated 1 year ago.
0
moderator

I suspect that is because of this line: <link href="back/assets/font-awesome/css/font-awesome.css" rel="stylesheet"> it use a relative path.

That result in:
current url directory + back/assets/font-awesome/css/font-awesome.css If you are on http://localhost:8000/admin/ or http://localhost:8000/admin/user the current directory for the url is http://localhost:8000/admin/ so the url is: http://localhost:8000/admin/ + back/assets/font-awesome/css/font-awesome.css and that result with the relative urls in your css to the urls you pointend out.

If you use one of the url helpers like url or asset your code will be:

<link href="{{asset('back/assets/font-awesome/css/font-awesome.css')}}" rel="stylesheet">

and you probably get the wanted result.

Last updated 3 years ago.
0

You could also always add the '/' in front of your assets. So for example:

<link href="{{mix('/back/assets/css/animate.css')}}" rel="stylesheet">
<link href="{{mix('/back/assets/css/style.css')}}" rel="stylesheet">

I suspect that this will fix your problem.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Filipe fturon Joined 30 Jun 2020

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.