<?php
namespace Nwidart\Modules\Commands;
use Illuminate\Console\Command;
use Nwidart\Modules\Migrations\Migrator;
use Nwidart\Modules\Module;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class MigrateStatusCommand extends Command
{
protected $name = 'module:migrate-status';
protected $description = 'Status for all module migrations';
protected $module;
public function handle() : int
{
$this->module = $this->laravel['modules'];
$name = $this->argument('module');
if ($name) {
$module = $this->module->findOrFail($name);