Ashraful Islam
Ashraful Islam

Reputation: 21

How to include External CSS and JS file in Laravel 5.5

I am Using Laravel 5.5, the Form and HTML Helper are removed from this version. I don't know how to include external style sheet and JavaScript files in my header file.

Currently I am using this code:

{{ HTML::style('css/bootstrap.min.css') }} 

Upvotes: 2

Views: 5362

Answers (1)

Viraj Shah
Viraj Shah

Reputation: 379

put your css in public/css and js in public/js and add follow code *.blade.php file

e.g.

<link href="{{ asset('css/app.min.css') }}" media="all" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{{ asset('js/app.min.js') }}"></script>

Upvotes: 5

Related Questions