PHPstorm补全代码提醒,laravel安装插件laravel

2019-05-03 22:33 来源:未知

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

图片 1

>>>php artisan ide-helper:generate

"post-update-cmd": [

第陆步:修改composer.json,加多一行(这一步好像无需就足以自行提醒了)

2.第叁改动镜像源为国内的镜像源

第二步:执行composer update

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

能够挑选设置插件:
首先步:在composer.json中参与以下两段代码:
"repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
}
"require"中加入:"barryvdh/laravel-ide-helper":"dev-master":

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

BarryvdhLaravelIdeHelperIdeHelperServiceProvider::class,

3.设置插件laravel-ide-helper

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

 

image.png

壹.插件地点laravel-ide-helper

"php artisan optimize",

>>>BarryvdhLaravelIdehelperIdeHelperServiceProvider::class, // 命令空间地方

]

>>>php artisan optimize

其三步:加多service provider,张开项目config/app.php 于providers增添如下1行:

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

"php artisan clear-compiled",

>>>php artisan clear-compiled

"php artisan ide-helper:generate"

>>>php artisan ide-helper:meta

5.初始化laravel-ide-helper

版权声明:本文由韦德娱乐1946_韦德娱乐1946网页版|韦德国际1946官网发布于网络编程,转载请注明出处:PHPstorm补全代码提醒,laravel安装插件laravel