<?php
namespace Nwidart\Modules\Commands;
use Illuminate\Console\Command;
use Nwidart\Modules\Migrations\Migrator;
use Nwidart\Modules\Traits\MigrationLoaderTrait;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class MigrateResetCommand extends Command
{
use MigrationLoaderTrait;
protected $name = 'module:migrate-reset';
protected $description = 'Reset the modules migrations.';
protected $module;
public function handle() : int
{
$this->module = $this->laravel['modules'];
$name = $this->argument('module');
if (!empty($name)) {
$this->reset($name);