Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install ide-helper for phpstorm

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge of "how to install ide-helper in phpstorm". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Phpstorm installs ide-helper based on lumen

In order to improve the efficiency of development and facilitate the generation of more properties and methods in model, try ide-helper

Installation

Composer require barryvdh/laravel-ide-helperUsing version ^ 2.6 for barryvdh/laravel-ide-helper./composer.json has been updatedLoading composer repositories with package informationUpdating 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 cachebarryvdh/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 fileGenerating optimized autoload files

Load in configuration (bootstrap/app.php)

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

Automatic generation

Php artisan ide-helper:generate

Error

Google, I think this extension is not installed, install

Composer require league/flysystem

Then execute it and get it done.

Php artisan ide-helper:generateA new helper file was written to _ ide_helper.php

It is best to put all the generated files in the git ignore file

_ ide_helper.php_ide_helper_models.php.phpstorm.meta.php

Reference:

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

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

This is the end of the content of "how to install ide-helper in phpstorm". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report