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


本文摘自PHP中文网,作者藏色散人,侵删。

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

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

安装

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

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)

1

2

//ide helper

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

自动生成

1

php artisan ide-helper:generate

报错

cff0e48d13efe00c2a59ec377fd85dc.png

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

1

composer require league/flysystem

再执行 ,搞定

1

2

php artisan ide-helper:generate

A new helper file was written to _ide_helper.php

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

1

2

3

_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(基于lumen)的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

phpstorm怎么批量替换

phpstorm怎么安装插件

怎么使用web/phpstorm将本地代码实时自动同步到远程服务器

什么是phpstorm

phpstorm基本使用

如何用phpstorm写html5

phpstorm2018如何取消编辑器竖线

分享mbp上常用的phpstorm快捷键

phpstorm怎么用js

phpstorm如何操作数据库建立外键

更多相关阅读请进入《phpstorm》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...