![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
laravel
淡忘每一天~
这个作者很懒,什么都没留下…
展开
-
laravel artisan 自定义控制器模板
laravel artisan 自定义控制器模板1 生成命令2 更改命令文件3 执行命令: 1 生成命令 php artisan make:command AppMakeCommand 该命令会在 app/Console/Commands 目录下创建一个新的命令类 在 Commands 目录下 差创建 stubs 目录 放入模板文件 controller.plain.stub controlle...原创 2019-03-22 11:31:17 · 1112 阅读 · 0 评论 -
laravel 获取 模块 控制器 方法名
/** * 获取 模块 控制器 方法名 */ final protected function getTemplatePath() { list($class, $method) = explode('@', $this->request->route()->getActionName()); # 模块名 ...原创 2019-03-26 16:57:46 · 6379 阅读 · 0 评论