Support the ongoing development of Laravel.io →
Laravel Views Blade
Last updated 2 years ago.
0

Try using public_path() + "file path".

Here public_path is whole path of your project to public directory

0

Try it with this syntax:

 {{URL::asset('folder_path_to_js/js/script.js')}}
 //folder_path_to_js will be required if the js directory is not in the public scope of URL::asset
0

Sign in to participate in this thread!

Eventy

Your banner here too?

FELPONE felpone Joined 2 Jun 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.