Ezadev Admin Commands
Ezadev-admin
has several console commands built in to help with development. Once Ezadev-admin is installed, you can use them directly.
artisan admin
Use the php artisan admin
command to display the current version of Ezadev-admin
and list all available admin commands.
artisan admin:make
This command is used to create the admin controller, passing in a model, it will build the required code of the three grid
, form
and show
pages according to the fields of the model corresponding table.
Then open app/Admin/Controllers/PostController.php
and you will see the code generated by this command.
If you add the option --output
or -O
, the code will be printed without creating a controller file.
artisan admin:install & artisan admin:uninstall
These two commands are used to install and uninstall the Ezadev-admin package, where admin:install
will create several files or directories in the project.
Running artisan admin:uninstall
will delete these files or directories
artisan admin:create-user
This command is used to create an admin user. After filling in the username and password interactively and selecting the role, a user can be created.
artisan admin:reset-password
This command is used to reset the password for the specified user and operate according to the prompt of the command.
artisan admin:import
This command is used to import the relevant configuration after installing a Ezadev-admin extension. The specific usage is in the documentation of each extension.
artisan admin:menu
This is a no-use command to list the left menu data in json format.
Last updated