刘华世的官方博客

laravel安装插件laravel-ide-helper

1.插件位置laravel-ide-helper

https://github.com/barryvdh/laravel-ide-helper

2.首先改变镜像源为国内的镜像源

>>>composer config repo.packagist composer https://packagist.phpcomposer.com

3.安装插件laravel-ide-helper

>>>composer require barryvdh/laravel-ide-helper

4.添加到config/app.php的providers方法中

>>>Barryvdh\LaravelIdehelper\IdeHelperServiceProvider::class, // 命令空间位置

5.初始化laravel-ide-helper

>>>php artisan clear-compiled

>>>php artisan ide-helper:generate

>>>php artisan ide-helper:meta

>>>php artisan optimize

6.到此插件laravel-ide-helper已经安装完成

 

posted @ 2017-04-08 15:22  刘华世的博客  阅读(2754)  评论(0编辑  收藏  举报
刘华世的官方博客