代碼: 選擇全部
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