Search code examples
laravellaravel-9

LARAVEL 9: I cannot reach my css file code anytime i have a doube url like this : /user/profile. How can i solve this?


LARAVEL 9: I am using a template in Laravel 9 and I cannot reach my CSS file code anytime I have a double URL like this : /user/profile. However, It only works when I have a single URL like this: /profile. But I want to be able to reach my CSS files when I have double URLs. How can I solve this? Any suggestions?


Solution

  • Did you put the files correctly in the public folder? Do you invoke it correctly within the blade as the following example:

    <link href="{{URL::asset('assets/plugins/fontawesome-free/css/all.min.css')}}" rel="stylesheet">
    

    Have you checked the error by inspecting your browser?

    You can check this link contains many useful examples for your case