PHPStorm神器可以支持更友好的laravel框架代码提示(点击查看),只需要执行如下才做:
第一步:在项目的composer.json中添加如下一行
"require": {
"laravel/framework": "5.0.*",
"barryvdh/laravel-ide-helper":"dev-master"
}
第二步:执行composer update
第三步:添加service provider,打开项目config/app.php 于providers添加如下一行:
'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider',
第四步:执行 php artisan ide-helper:generate
第五步:修改composer.json,添加一行
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize",
"php artisan ide-helper:generate"
]
看看效果:
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