标签:
地址https://github.com/barryvdh/laravel-ide-helper
简单记录下安装过程
项目目录下
composer require barryvdh/laravel-ide-helper
在app/config/app.php里面的providers里面添加
‘Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider‘,
配置好数据库连接,不然下面会报错
./artisan clear-compiled ./artisan ide-helper:generate ./artisan optimize
还可以在composer.json的post-update-cmd中加入命令保证helper在每次commit都会更新,如下:
"post-update-cmd": [ "php artisan clear-compiled", "php artisan ide-helper:generate", "php artisan optimize" ],
收工
laravel的phpstorm插件laravel-ide-helper
标签:
原文地址:http://www.cnblogs.com/ziyouchutuwenwu/p/4269187.html