php artisan make:controller UserController #创建controller
php artisan make:model Flight #创建model
php artisan route:list #路由列表

php artisan config:clear #清楚配置缓存

php artisan config:cache

 

 例如在app下建一个Common文件夹 在Common下建一个function.php 放入公共函数

在项目目录下composer.json中加入

"autoload": {

"files":[

"app/Common/function.php"

]

}

在项目目录下执行

composer dump-autoload

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2021-11-17
  • 2022-01-06
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-09-21
  • 2022-01-15
相关资源
相似解决方案