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

lumen can use laravel-ide-helper, lumen_PHP tutorial

WBOY
Release: 2016-07-12 08:58:50
Original
1071 people have browsed it

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);
Copy after login

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
Copy after login

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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template