Script file link does not work



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

    @section('scripts')

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

    But when go to javascript link:

    http://192.168.33.21:8000/modules/friend/js/friends.js

    It tells me that:

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

    1/1
    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