Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to use ide-helper to quickly and easily realize the Intelligent prompt of Laravel Framework Code in PhpStrom

Shulou Source: shulou.com Published: 2022-06-02 03:19:23 10月02日 Update

In this issue, the editor will bring you intelligent tips on how to use ide-helper to achieve Laravel framework code quickly and easily in PhpStrom. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

First, install the phpstorm plug-in laravel

Then install composer support and automatically complete prompt generation

If you only want to install in the development environment, please add-- dev

Composer require barryvdh/laravel-ide-helperphp artisan ide-helper:eloquentphp artisan ide-helper:generate / / generate comments for Facades php artisan ide-helper:meta / generate PhpStorm Meta filephp artisan ide-helper:models / / generate comments for data models generate comments php artisan ide-helper:models for all models, then ask: Do you want to overwrite the existing model files? Choose no to write to _ ide_helper_models.php instead? (Yes/No): (yes/no) [no]: entering yes will write comments directly in the model file, otherwise the "_ ide_helper_models.php" file will be generated. It is recommended that you choose yes so that you don't jump to the "_ ide_helper_models.php" file when tracking files, but it's best to make a backup of the model files, or at least use git to control the version before generating comments, just in case. In order to prevent model from being overwritten, select the default nocomposer require doctrine/dbal / / migration management database file to support modification. You need to introduce this type of modification. This is how PhpStrom uses ide-helper to quickly and easily implement intelligent tips for Laravel framework code. If you happen to have similar doubts, please refer to the above analysis for understanding. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Generation files comments models prompts convenience code intelligence framework content data analysis support selection just in case professional small and medium rich in content backup that is Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei vpn Shulou Information Shulou Tech Info MariaDB