Hello,
can you please tell me how
http://127.0.0.1:8000/js/custom/authentication/sign-up/general.js
Sorry, my mistake. For your case, please check the file: config/global/pages.php
We include the JS and CSS files in this file based on the route URL.
Thanks
Hi,
Yes, this js file is inserted at the bottom of the sign-up page. In our case, we have included it in the controller function.
/starterkit/app/Http/Controllers/Auth/RegisteredUserController.php
addJavascriptFile("assets/js/custom/authentication/sign-up/general.js");
Sorry, I search the whole code there is no method "addJavascriptFile" any where.
Please help understand how you set JS and CSS per Route (Controller , Method)
On my Controller no call for JS and CSS is made the all the javascript is not working.
For esample on this page
http://127.0.0.1:8000/account/settings
<script src="http://127.0.0.1:8000/js/custom/account/settings/profile-details.js"></script>
<script src="http://127.0.0.1:8000/js/custom/account/settings/signin-methods.js"></script>
<script src="http://127.0.0.1:8000/js/custom/modals/two-factor-authentication.js"></script>