deatil / larke-admin

larke-admin 是一套使用 Laravel 、JWT 和 RBAC 鉴权的前后端分离的通用后台管理系统。/ An admin api system with Laravel, JWT and RBAC.
https://github.com/deatil/larke-admin
Apache License 2.0
293 stars 62 forks source link

[Question]: 方法提示未定义 #27

Closed declandragon closed 1 year ago

declandragon commented 1 year ago

疑惑的地方

"php": "^8.0",
"lake/larke-admin": "1.5.2",

app/Admin/routes.php 这个文件,找不到 routes 方法,ide 是 PhpStorm ,使用了 Laravel Idea 插件。 请问是实现的哪个方法,想用注解的方式标注一下,类似下面这种。 有点强迫症想处理一下,谢谢。

/**
* @method static \Illuminate\Routing\Route get(string $uri, array|string|callable|null $action = null)
*/

image

期望的结果

能直接跳转到方法定义的地方

deatil commented 1 year ago

https://github.com/deatil/larke-admin/blob/main/src/larke/admin/Extension/Manager.php#L274

截图里的是用的上面这个方法