1. Project Address
https://github.com/ barryvdh/laravel-ide-helper
2. Installation method
1. Method 1: Directly use the generated file
Download https://gist.github.com _ide_helper.php
in /barryvdh/5227822 is placed in the project root directory.
2. Method 2: Manually generate
Import library:
composer require barryvdh/laravel-ide-helper
Copy after login
Add in config/app.php
providers:
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
Copy after login
Generate auxiliary files:
php artisan ide-helper:generate
Copy after login
Tips: You need to clear bootstrap/compiled.php
first, so you need to execute php artisan clear-compiled
before generation, and after generation Execute php artisan optimize
.
Configure composer.json to execute after each commit.
"scripts":{ "post-update-cmd": [ "php artisan clear-compiled", "php artisan ide-helper:generate", "php artisan optimize" ] },
Copy after login