Laravel ---【转】PhpStorm下Laravel代码智能提示

【转】http://blog.csdn.net/pangchengyong0724/article/details/54706775

第一步:在项目的composer.json中添加如下一行

"require": {

"laravel/framework": "5.0.*",

"barryvdh/laravel-ide-helper":"dev-master"

}

第二步:执行composer update

第三步:添加service provider,打开项目config/app.php 于providers添加如下一行:

Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,

第四步:执行 php artisan ide-helper:generate

第五步:修改composer.json,添加一行(这一步好像不需要就可以自动提示了)

"post-update-cmd": [

"php artisan clear-compiled",

"php artisan optimize",

"php artisan ide-helper:generate"

]

上一篇:【error】no type named ‘type’ in ‘class std::result_of


下一篇:
【Linux】snmp在message中报错: /etc/snmp/snmpd.conf: line 311: Error: ERROR: This output format has been de