phpstorm 基于lumen安装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/po...
https://github.com/barryvdh/l...
相关推荐
echosilly 2020-09-17
icysonyk 2020-09-15
一名java从业者 2019-12-10
shuhaojie 2020-11-02
Jruing 2020-09-01
wayway0 2020-08-16
xiaoyaodaia 2020-08-12
mmwalker 2020-08-11
测试自动化顾问 2020-06-09
Leewoxinyiran 2020-04-14
wuchangqian 2020-04-10
yuzhongdelei0 2020-02-15
hustlei 2020-02-01
84374298 2020-01-21
chenyijun 2020-01-01
meylovezn 2020-01-09
dayslrk 2020-01-09
shangs00 2019-12-28
mohanzb 2019-12-19