phpstorm怎么安装ide-helper

本篇内容介绍了“phpstorm怎么安装ide-helper”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

公司主营业务:成都网站建设、做网站、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。成都创新互联公司是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。成都创新互联公司推出江阴免费做网站回馈大家。

为了提高开发效率,也方便在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)

 //ide helper
 $app->register(Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);

自动生成

php artisan ide-helper:generate

报错

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.html

https://github.com/barryvdh/laravel-ide-helper/issues/723

“phpstorm怎么安装ide-helper”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注创新互联网站,小编将为大家输出更多高质量的实用文章!


分享标题:phpstorm怎么安装ide-helper
网页URL:http://bzwzjz.com/article/pddjhh.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 营销网站建设 网站制作 成都网站制作公司 成都企业网站设计 LED网站设计方案 定制网站建设 手机网站制作 成都网站建设 成都网站建设 网站制作公司 成都网站建设 成都网站建设 成都模版网站建设 成都网站建设 成都营销网站制作 重庆手机网站建设 重庆外贸网站建设 成都网站制作 泸州网站建设 成都网站建设 成都网站建设公司 网站建设公司