laravel ide-helper安装

 
更多

首先需要在phpStorm中安装laravel plugin:

QQ截图20180201111929.jpg

接下来

引入此包,该命令会自动修改 composer.json 文件

composer require barryvdh/laravel-ide-helper  

下载完成后加入 config/app.php 中的 providers 数组中

Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,

仅在开发系统中安装提示包

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

在 app/Providers/AppServiceProvider.php 文件中注册

public function register()
{
    if ($this->app->environment() !== 'production') {
        $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
    }
    // ...
}

生成代码跟踪支持

php artisan ide-helper:generate

请参考: https://github.com/barryvdh/laravel-ide-helper

打赏

本文固定链接: https://www.cxy163.net/archives/2766 | 绝缘体-小明哥的技术博客

该日志由 绝缘体.. 于 2019年10月20日 发表在 git, laravel, PHP, 后端框架, 开发工具, 编程语言 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: laravel ide-helper安装 | 绝缘体-小明哥的技术博客
关键字: , , , ,

laravel ide-helper安装:等您坐沙发呢!

发表评论


快捷键:Ctrl+Enter