phpstorm对laravel框架代码自动提示配置

时间:2022-11-18 15:56:54


1、命令行输入 :composer require barryvdh/laravel-ide-helper    //下载laravel-ide-helper 以及相关依赖

2、在config/app.php中添加代码如下:

        

'providers' => [
..........
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,

]

'providers' => [
..........
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,

]

3、命令行执行 :php artisan ide-helper:generate 

4、重启phpstorm即可