This article explains how to install ide-helper in phpstorm (based on lumen)

藏色散人
Release: 2021-08-12 14:02:16
forward
3000 people have browsed it

The following tutorial column will introduce to you how to install ide-helper based on lumen in phpstorm. I hope it will be helpful to friends who need it!

phpstorm installs ide-helper based on lumenThis article explains how to install ide-helper in phpstorm (based on lumen)

Installation

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
Copy after login

Loading in configuration (bootstrap/app.php)

 //ide helper
 $app->register(Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
Copy after login
Automatic generation

php artisan ide-helper:generate
Copy after login

Error report

##Google it, it should be that this extension is not installed, install

composer require league/flysystem
Copy after login

and then execute it, get itThis article explains how to install ide-helper in phpstorm (based on lumen)

php artisan ide-helper:generate
A new helper file was written to _ide_helper.php
Copy after login
It is best to put these generated files into the git ignore file

_ide_helper.php
_ide_helper_models.php
.phpstorm.meta.php
Copy after login

Reference:

https://laravelacademy.org/post/4202.html

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


The above is the detailed content of This article explains how to install ide-helper in phpstorm (based on lumen). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template