argument('module'); $migrationName = $this->argument('migration'); $modulePath = modules_path($moduleName); if (! is_dir($modulePath)) { $this->error("Module [{$moduleName}] does not exist."); return; } $migrationPath = "app/Modules/{$moduleName}/Database/Migrations"; Artisan::call('make:migration', [ 'name' => $migrationName, '--path' => $migrationPath, ]); $this->info("Migration [{$migrationName}] created successfully in module [{$moduleName}]."); } }