Skip to content

7.4 makePage

Lucas F. Lu edited this page Jan 31, 2020 · 4 revisions

Command to build a page

Page building command is itself a wizard that takes only one argument as the page name. The end result is a fully functional page that is ready to view at the route specified during the wizard.

Only one page is creatd, and you will be guided along the process to build a page you like.

  • The wizard will ask about the datafields definition and setup models if needed. A migration file is also created and migrated at the end of the model creation process.
  • The wizard will build the controller and set up the proper routes needed base on the answers to page type, route name, route parameters, route type, layout style, etc.
  • The wizard will build the view needed base on the answers to page name, title, subtext, page contents, etc.
  • The wizard will associate models already in the system and build relationships, join tables, and eager loads tables if necessary.
  • The wizard will export the blueprint if needed.