CSS and JavaScript libraries are not working with Required Parameters in Laravel

116 views Asked by At

In my Laravel application, all the CSS and JQ libraries are working fine. working css

But as soon as I use routes with parameters it breaks CSS, JQ, and fontawesome. broken JQ

Then I managed to fix the CSS issue by using Assets URLs as below.

{{ asset('css/admin.min.css') }}

But Jquery is not working yet. How can I fix this issue?

2

There are 2 answers

0
Ranjeet On

Add '/' before path like this: {{ asset('/css/admin.min.css') }}

0
Danrley Silva On

Add '/' before 'href="assets/css/animate.css" to href="/assets/css/animate.css"