简介:

Artisan是Laravel中自带的命令行工具的名称;

由强大的Symfony Console组件驱动的;

提供了一些对应用开发有帮助的命令;

 

查看所有可用的Artisan的命令

php artisan

php artisan list

查看命令的帮助信息

php artisan help migrate

 

基本使用:

创建控制器 php artisan make:controller StudentController

创建模型 php artisan make:model Student

创建中间件 php artisan make:middleware Activity

 

注:在phpstorm中的控制台里运行以上命令

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2022-01-06
  • 2021-05-17
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2021-08-01
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-11-15
相关资源
相似解决方案