phpstorm添加laravle语法支持

WBOY
Release: 2016-06-23 13:06:07
Original
1117 people have browsed it

Tyler‘s Blog

不冒任何险,什么都不做,什么也不会有,什么也不是。涉及技术PHP,.NET,BI(商业智能)。

  • 博客园
  • 首页
  • 新随笔
  • 联系
  • 订阅
  • 管理

随笔-304  文章-0  评论-495 

phpstorm添加laravle语法支持

PHPStorm神器可以支持更友好的laravel框架代码提示,只需要执行如下才做:

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

1 "require": {2 "laravel/framework": "5.0.*",3 "barryvdh/laravel-ide-helper":"dev-master"4 }
Copy after login

第二步:执行composer update

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

Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
Copy after login

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

第五步:修改composer.json,添加一行

"post-update-cmd": [    "php artisan clear-compiled",    "php artisan optimize",    "php artisan ide-helper:generate"]
Copy after login

posted @ 2016-05-17 14:46nd 阅读( ...) 评论( ...) 编辑

Copyright ©2016 nd

作者:Tyler Ning 出处:http://www.cnblogs.com/tylerdonet 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!