Closed felixwann closed 1 year ago
文件:thinkphp/library/think/route/Rule.php第794行,增加这段代码:
thinkphp/library/think/route/Rule.php
elseif (is_array($route) && count($route) == 2) { $result = $this->dispatchMethod($request, $route[0] . '@' . $route[1]); }
定义路由:
Route::get('hello/:name', [\app\index\controller\Index::class, 'hello']);
这样就可以在PHPstorm中查看该方法是否被注册成路由
https://www.cnblogs.com/felixwan/p/16997865.html
文件:
thinkphp/library/think/route/Rule.php
第794行,增加这段代码:定义路由:
这样就可以在PHPstorm中查看该方法是否被注册成路由
https://www.cnblogs.com/felixwan/p/16997865.html