Script file link does not work

  • I added the script file based on copying script link of blog module. I added


    <script src="{{ Module::asset('friend:js/friends.js') }}" type="text/javascript"></script>

    But when go to javascript link:

    It tells me that:

    Sorry, the page you are looking for could not be found.

    NotFoundHttpException in RouteCollection.php line 161:

    How can I add script link in my blade template?

  • Global Moderator

    Did you publish your js assets php artisan module:publish friend?

  • Yes, it works !!!!

    Thank you for your help!!!

Log in to reply