首页 > 代码库 > laravel安装插件laravel-ide-helper

laravel安装插件laravel-ide-helper

1.插件位置laravel-ide-helper

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

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

<style>P { margin-bottom: 0.21cm } A:link { }</style>

>>>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已经安装完成

 

laravel安装插件laravel-ide-helper