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

“barryvdh/laravel-ide-helper”:”dev-master”

第二步:执行composer update

第三步:添加service provider

打开项目config/app.php 于providers添加如下一行:

Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,

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

第五步:修改composer.json,添加一行(这一步好像不需要就可以自动提示了)

"post-update-cmd": [
 
    "php artisan clear-compiled",
 
    "php artisan optimize",
 
    "php artisan ide-helper:generate"
 
]
Last modification:September 4th, 2018 at 10:17 pm
If you think my article is useful to you, please feel free to appreciate