Include CSS and JavaScript:
Suppose, you have a CSS file style.css and a JavaScript file common.js, they need to be located in public/css and public/js directories respectively.
So their file path look like this:
public/css/style.css
public/js/common.js
Then in your blade template file, in resources/views/home.blade.php, include the css and js files like this
<link rel="stylesheet" href="{{URL::asset('css/style.css')}}">
<script type="text/javascript" src="{{URL::asset('js/common.js')}}"></script>
Question and answer is powered by AnsPress.io