css doesn't work in laravel hello guys i have problem in laravel project
i use a template bootstrap in my project
if the route like this "/home" will display css
but if route like this "/home/....."
will not display css
this the head
<link href="{{url( '/assets/vendor/bootstrap/css/bootstrap.min.css' )}}" rel="stylesheet">
<link href="{{url( '/assets/vendor/bootstrap-icons/bootstrap-icons.css' )}}" rel="stylesheet">
<link href="{{url( '/assets/vendor/boxicons/css/boxicons.min.css' )}}" rel="stylesheet">
<link href="{{url( '/assets/vendor/quill/quill.snow.css' )}}" rel="stylesheet">
<link href="{{url( '/assets/vendor/quill/quill.bubble.css' )}}" rel="stylesheet">
<link href="{{url( '/assets/vendor/remixicon/remixicon.css' )}}" rel="stylesheet">
<link href="{{url( '/assets/vendor/simple-datatables/style.css' )}}" rel="stylesheet">
<link href="{{ url('css/quiz.css') }}" rel="stylesheet">
if your file bootstrap.min.css is located at public/assets/vendor/bootstrap/css/bootstrap.min.css
then try this one
<link href="{{asset( 'assets/vendor/bootstrap/css/bootstrap.min.css' )}}" rel="stylesheet">
<link href="{{asset( 'assets/vendor/bootstrap-icons/bootstrap-icons.css' )}}" rel="stylesheet">
<link href="{{asset( 'assets/vendor/boxicons/css/boxicons.min.css' )}}" rel="stylesheet">
<link href="{{asset( 'assets/vendor/quill/quill.snow.css' )}}" rel="stylesheet">
<link href="{{asset( 'assets/vendor/quill/quill.bubble.css' )}}" rel="stylesheet">
<link href="{{asset( 'assets/vendor/remixicon/remixicon.css' )}}" rel="stylesheet">
<link href="{{asset( 'assets/vendor/simple-datatables/style.css' )}}" rel="stylesheet">
<link href="{{ asset('css/quiz.css') }}" rel="stylesheet">
have you extended the main layout which contain above CSS file
vendor and css are under public directory ?
@anilkumarthakur60
thanks bro i find the problem there is another line under i didn't change the url
Please sign in or create an account to participate in this conversation.