Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Validation understanding


Hello,
can you please tell me how

http://127.0.0.1:8000/js/custom/authentication/sign-up/general.js

is inserted at the bottom of the sign-up page?

Thank you


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (3)


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");


Thanks



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>


Thank you


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(