Skip to content

Page Generator ‚Äč

The Page Generator Command, will create a new Page for the provided Module with a basic boilerplate code. If you want to create a new ProfileIndex page, and a ProfileForm page for the Customer Module, you can run the following command:

php artisan modular:make-page Customer Profile

Or if you are using Laravel Sail, run:

sail artisan modular:make-page Customer Profile

Two new files will be created at resources/js/Pages/Customer/ProfileIndex.vue and resources/js/Pages/Customer/ProfileForm.vue, considering these as the common files to list and create/edit the Profile Model.