php artisan 命令是Laravel框架自带的命令,方便用户快速创建、查看对应的模块参数等。

  • php artisan list 查看php artisan所有命令
  • php artisan --help 查看php artisan的用法
  • 创建控制器:php artisan make:controller TestController
  • 创建模型:php artisan make:model Test
  • 执行数据迁移:php artisan migrate
  • 清理缓存: php artisan cache:clear

参考:

https://blog.csdn.net/jzhangc/article/details/116989108