Home  >  Article  >  Backend Development  >  lumen can use laravel-ide-helper, lumen_PHP tutorial

lumen can use laravel-ide-helper, lumen_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 08:58:50989browse

lumen can use laravel-ide-helper, lumen

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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1101076.htmlTechArticlelumen can use laravel-ide-helper, lumen 1. laravel-ide-helper address https://github. com/barryvdh/laravel-ide-helper Execute the composer installation command composer require b...
in the project root directory
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn