xxxxxxxxxx
{{ asset('js/jquery.min.js') }}
{{ asset('css/bootstrap.css') }}
//Full Path http://127.0.0.1:8000/js/jquery.min.js
Do Not Add Public folder name
xxxxxxxxxx
// Depending on what you want to achieve read below.
--
// This is how laravel asset reference works
asset() = "public/..."
// So the below example explains this
/* Implementation */ {{ asset('js/jquery.min.js') }}
/* Output */ "public/js/jquery.min.js"
--
// This is how you can adjust the default asset path in Laravel
// Step 1 : Inside your .env file add this
ASSET_URL="custom/path/to/my/stuff/"
// Step 2 : Now with the above implemented when you use asset()
/* Implementation */ {{ asset('js/jquery.min.js') }}
/* Output */ "custom/path/to/my/stuff/public/js/jquery.min.js"