cd项目文件位置运行 php artisan make:controller IndexController生成控制器 转载于:https://www.cnblogs.com/zhang-bin/p/7722800.html