Home > Article > Backend Development > lumen can use laravel-ide-helper, lumen_PHP tutorial
1. laravel-ide-helper address https://github.com/barryvdh/laravel-ide-helper
Execute composer installation command in the project root directory
composer
require
barryvdh/laravel-ide-helper:
'2.1.0'
2. Add the registration code of IdeHelperServiceProvider to app.php in app/bootstrap
$app->register(Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
3. Open the command line and switch to the project root directory to execute the following command
php artisan ide-helper:generate - phpDoc generation for Laravel Facades php artisan ide-helper:models - phpDocs for models php artisan ide-helper:meta - PhpStorm Meta file
After the command is executed, an _ide_helper.php file will be generated in the directory.
in the project root directory