调用模型的方法 IDE不会有方法、参数提示
$articles = ArticlesModel::paginate(2);
调用模型的时候不会提示paginate这个方法及参数
如何在添加模型方法提示,IDE是PHPSTORM,可能由于模型是抽象类,并且实现了多个底层的接口
如何使phpstorm支持模型中方法的提示
已解决
使用
php artisan ide-helper:models
命令就在ide-helper中生成模型方法提示了
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
https://github.com/barryvdh/l...
我用的这个 laravel-ide-helper