Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Validation understanding


Hello,
can you please tell me how


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

Thank you


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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



<script src="
<script src="
<script src="


Thank you


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(