I want to include CSS and Javascript with the help of Laravel 5 helper. But I don't know which is there.
href="{{ url() }}/assets/css/bootstrap.css" rel="stylesheet"
I need to load with the helper of laravel. Not to traditional.
Please any suggestion tell me.
In Laravel you can use the provided HTML class for including the CSS and JS in a project
Stylesheet:
{{ HTML::style('css/style.css') }}
Javascript:
{{ HTML::script('js/your_js_file.js') }}
NOTE:
You can also use URL class
JS
{{ URL::asset('js/your_js_file.js'); }}
STYLE
{{ URL::asset('css/style.css'); }}
EDIT:
If you are using LARAVEL 5 find the solution here http://laravel.io/forum/09-20-2014-html-form-class-not-found-in-laravel-5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With