1 頁 (共 1 頁)

Laravel Migrations Generator

發表於 : 2018-11-17 14:56:55
yehlu
https://github.com/Xethron/migrations-generator

代碼: 選擇全部

composer require --dev "xethron/migrations-generator"

app/Providers/AppServiceProvider.php

代碼: 選擇全部

public function register()
{
    if ($this->app->environment() !== 'production') {
        $this->app->register(\Way\Generators\GeneratorsServiceProvider::class);
        $this->app->register(\Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class);
    }
    // ...
}

代碼: 選擇全部

php artisan migrate:generate