2

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') }} 
Martin Evans
  • 45,791
  • 17
  • 81
  • 97
  • 1
    You have to write normal `` tag for this. because external css and js will have different path and `{{ HTML::style('css/bootstrap.min.css') }}` can not be understood by it. – Himanshu Upadhyay Nov 16 '17 at 11:01
  • Your question has answer here, check this [link](https://stackoverflow.com/questions/28104583/how-to-include-external-css-and-js-file-in-laravel-5) – Ritesh Khatri Nov 16 '17 at 11:21

1 Answers1

5

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>
Viraj Shah
  • 369
  • 1
  • 4
  • 11