Home  >  Article  >  php教程  >  lumen可以使用laravel-ide-helper,lumen

lumen可以使用laravel-ide-helper,lumen

WBOY
WBOYOriginal
2016-06-13 08:45:571107browse

lumen可以使用laravel-ide-helper,lumen

1.laravel-ide-helper 地址https://github.com/barryvdh/laravel-ide-helper

在项目根目录执行composer安装命令

composer require barryvdh/laravel-ide-helper:'2.1.0'

2.在app/bootstrap中的app.php中加入IdeHelperServiceProvider的注册代码

$app->register(Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);

 

3.打开命令行切换到项目根目录执行以下命令

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

 命令执行完成后会在目录中生成一个_ide_helper.php文件。

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