The PHP artisan command is the CLI (command line interface) provided by the Laravel, which helps developers to easily develop
php artisan list //查看所有可用 artisan 命令php artisan help [command] // 查看command 命令的信息
Command |
Description |
PHP Artisan Key:generate |
Build APP Key |
PHP Artisan Make:controller |
Build controller |
PHP Artisan Make:model |
Build model |
PHP Artisan Make:policy |
Generate Authorization Policy |
PHP Artisan Make:seeder |
Generate Seeder File |
PHP Artisan Db:seed |
Populating the Database |
PHP Artisan Migrate |
Build migration |
PHP Artisan Migrate:rollback |
Roll back migration |
PHP Artisan Migrate:refresh |
Resetting the database |
PHP Artisan Tinker |
Enter the Tinker environment |
PHP Artisan route:list |
View the list of routes |
Frequently used or handy instructions will continue to be added later
The underlying implementation has time to parse.
Study on laravel-php Artisan