Use absolute paths for your links to your assets. So instead of
<link rel="stylesheet" type="text/css" href="style.css" />
Use a / to use an absolute path:
<link rel="stylesheet" type="text/css" href="/style.css" />
Or generate the full url:
<link rel="stylesheet" type="text/css" href="{{ asset('style.css') }}" />
The same goes for links etc, because usually link are relative and the browser sees admin/user as a subdirectory.
Thanks, barryvdh
It works well with {{ asset('style.css') }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community