Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议调整安装方式 #16

Open
eeokee opened this issue May 20, 2018 · 0 comments
Open

建议调整安装方式 #16

eeokee opened this issue May 20, 2018 · 0 comments

Comments

@eeokee
Copy link

eeokee commented May 20, 2018

环境:
laravel 5.6
laravel-admin 1.5

建议:

  1. 安装时添加迁移文件到migrations目录
  2. 移除如下 if 部分代码(该代码会引起重复迁移)
<?php
namespace Encore\Admin\Config;
use Illuminate\Support\ServiceProvider;
class ConfigServiceProvider extends ServiceProvider
{
    /**
     * {@inheritdoc}
     */
    public function boot()
    {
        if ($this->app->runningInConsole()) {
            $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
        }
        Config::boot();
    }
}
@eeokee eeokee changed the title 常规Tests运行失败,建议调整安装方式 建议调整安装方式 May 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant