您的位置:首页 > 编程语言 > PHP开发

laravel 让phpstorm不出现undefind类的插件

2015-10-31 13:47 615 查看

https://github.com/barryvdh/laravel-ide-helper

Install

Require this package with composer using the following command:

composer require barryvdh/laravel-ide-helper


After updating composer, add the service provider to the 
providers
 array in 
config/app.php


Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,



Automatic
phpDoc generation for Laravel Facades

You can now re-generate the docs yourself (for future updates)

php artisan ide-helper:generate


Note: 
bootstrap/compiled.php
 has to be cleared first, so run 
php artisan clear-compiled
 before generating (and 
php
artisan optimize
 after).

You can configure your composer.json to do this after each commit:

"scripts":{
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan ide-helper:generate",
"php artisan optimize"
]
},
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: