Here I have a js directory in the laravel's app/public folder. There I have a jquery.js file. The function URL::asset() produces the necessary url for you. Same for the css:
Ok so I was able to figure out for the version 5.2. You will first need to create assets folder in your public folder then put css folder and all css files into it then link it like this :
Laravel 5.5 comes with mix , the replacement for Elixir, the external css(sass) can be extracted to resources/assets/css(sass) and import to app.css(scss) or give the correct path to your node_module folder that contains the library and can be used as
At first, you have to put your .css or .js files in the public folder of your project. You may create subfolders to it and move the files into the subfolder. Then you have to do the followings
In my example, I have created two subfolders called css and js. I put all of the .css and .js files in corresponding folders and use them where ever I want them. Thank you and hope this helps you.
<script type="text/javascript" src="\{\{ URL::asset('js/jquery.js') }}"></script>
for javascript and
<link rel="stylesheet" href="\{\{ URL::asset('css/main.css') }}">
for css, this points to the public directory, so you need to keep your css and js files there.
There are many ways to include external css and js files as specified in below code but you can choose one of them, i have tested them all, they work the same.