总结
豆包 AI 助手文章总结

一文讲解phpstorm如何安装ide-helper(基于lumen)

藏色散人
发布: 2021-08-12 14:02:16
转载
3040人浏览过

下面由phpstorm教程栏目给大家介绍phpstorm 基于lumen如何安装ide-helper,希望对需要的朋友有所帮助!

一文讲解phpstorm如何安装ide-helper(基于lumen)

为了提高开发效率,也方便在model 中生成更多的属性和方法,尝试下ide-helper

安装

composer require barryvdh/laravel-ide-helper

Using version ^2.6 for barryvdh/laravel-ide-helper
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 11 installs, 0 updates, 0 removals
  - Installing composer/xdebug-handler (1.3.2): Loading from cache
  - Installing composer/spdx-licenses (1.5.1): Loading from cache
  - Installing symfony/filesystem (v4.2.5): Loading from cache
  - Installing justinrainbow/json-schema (5.2.8): Loading from cache
  - Installing seld/phar-utils (1.0.1): Loading from cache
  - Installing seld/jsonlint (1.7.1): Loading from cache
  - Installing composer/semver (1.5.0): Loading from cache
  - Installing composer/ca-bundle (1.1.4): Loading from cache
  - Installing composer/composer (1.8.4): Loading from cache
  - Installing barryvdh/reflection-docblock (v2.0.6): Loading from cache
  - Installing barryvdh/laravel-ide-helper (v2.6.2): Loading from cache
barryvdh/reflection-docblock suggests installing dflydev/markdown (~1.0)
barryvdh/laravel-ide-helper suggests installing doctrine/dbal (Load information from the database about models for phpdocs (~2.3))
Writing lock file
Generating optimized autoload files
登录后复制

配置中加载(bootstrap/app.php)

立即学习PHP免费学习笔记(深入)”;

 //ide helper
 $app->register(Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
登录后复制

自动生成

php artisan ide-helper:generate
登录后复制

报错

cff0e48d13efe00c2a59ec377fd85dc.png

google 了下,应该是未安装这个扩展,安装

composer require league/flysystem
登录后复制

再执行 ,搞定

php artisan ide-helper:generate
A new helper file was written to _ide_helper.php
登录后复制

最好把生成的这些文件都放到git 忽略文件里

_ide_helper.php
_ide_helper_models.php
.phpstorm.meta.php
登录后复制
参考:https://laravelacademy.org/post/4202.htmlhttps://github.com/barryvdh/laravel-ide-helper/issues/723

以上就是一文讲解phpstorm如何安装ide-helper(基于lumen)的详细内容,更多请关注php中文网其它相关文章!

PHP速学教程(入门到精通)
PHP速学教程(入门到精通)

PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!

下载
相关标签:
来源:segmentfault网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
豆包 AI 助手文章总结
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号