Home > php教程 > php手册 > PHP IDE PHPStorm配置支持友好Laravel代码提示方法

PHP IDE PHPStorm配置支持友好Laravel代码提示方法

WBOY
Release: 2016-06-06 20:04:15
Original
1926 people have browsed it

这篇文章主要介绍了PHP IDE PHPStorm配置支持友好Laravel代码提示方法,重点配置已经加红提示,需要的朋友可以参考下

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"
 
]


看看效果:

PHP IDE PHPStorm配置支持友好Laravel代码提示方法

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template