How to generate a link to Javascript file in Laravel

To generate a link to the CSS file you need to use HTML::script() methodIf you are using Laravel 5 you need to install illuminate/html package before using this method.

Quick Tip : How to create pagination in Laravel?

Useful Read:

{{ HTML::script('js/app.js') }}

The above code will produce following HTML output,

<script src=""></script>



Leave a Comment.