Call Dynamic css and javascript in app.blade.php and co.

to call a dynamic asset in laravel you simply add the asset or resource like this:

[code]<link href=”{{ asset(‘css/style.css’) }}” rel=”stylesheet”>[/code]

refering to the css directory or folder and calling for example theĀ style.css

or for javascript files use:

[code]<script src=”{{ asset(‘js/jquery-ui.min.js’) }}”></script>[/code]


Leave a Reply

Your email address will not be published.