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') }} 
2
  • 1
    You have to write normal <link> 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. Commented Nov 16, 2017 at 11:01
  • Your question has answer here, check this link Commented Nov 16, 2017 at 11:21

1 Answer 1

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>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.