您现在的位置是:首页>Phpstorm
phpstorm添加laravel代码提示
发布时间:2018-08-12编辑:w 浏览(1646)
打开phpstorm设置
找到插件
在弹出的框内搜索
Laravel Plugin 然后下载
如果下载失败,打开设置找到如图的位置
即可下载成功。
然后在laravel项目中使用composer下载代码提示包
composer require barryvdh/laravel-ide-helper
在5.5以下的laravel版本中需要在config/app.php的providers 中添加
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
大于等于5.5版本的则不需要
在项目根目录的终端执行命令 php artisan ide-helper:generate
重启phpstorm即可
关键字词:phpstorm laravel 自动提示
上一篇: laravel Repositories
下一篇: composer国内镜像加速