How to install Laravel5 IDE Helper
This article mainly explains "how to install Laravel5 IDE Helper". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to install Laravel5 IDE Helper.
Installation method 1, method 1: directly use the generated files
Download _ ide_helper.php and place it in the root directory of the project.
2. Method 2: generate manually
Import the library:
Composer require barryvdh/laravel-ide-helper
Add to the providers of config/app.php:
Barryvdh\ LaravelIdeHelper\ IdeHelperServiceProvider::class
Generate auxiliary files:
Php artisan ide-helper:generate
Tip: you need to clear bootstrap/compiled.php first, so you need to execute php artisan clear-compiled before generation and php artisan optimize after generation.
Configure composer.json to execute after each commit.
"scripts": {"post-update-cmd": ["php artisan clear-compiled", "php artisan ide-helper:generate", "php artisan optimize"]}, thank you for reading. This is the content of "how to install Laravel5 IDE Helper". After the study of this article, I believe you have a deeper understanding of how to install Laravel5 IDE Helper. The specific use situation still needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!