create new command for insert init spatial plannings dan remove unused retribution tables

This commit is contained in:
arifal
2025-06-23 17:52:55 +07:00
parent 7eb5a850c2
commit 5dd92aa323
5 changed files with 826 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ class InitSpatialPlanningDatas extends Command
*/
public function handle()
{
$filePath = $this->argument('file') ?? 'public/templates/Data_2025___Estimasi_Jumlah_Lantai.csv';
$filePath = $this->argument('file') ?? 'public/templates/2025.xlsx';
$fullPath = storage_path('app/' . $filePath);
// Check if file exists
@@ -192,6 +192,8 @@ class InitSpatialPlanningDatas extends Command
$this->info("Found " . count($rows) . " data rows to import.");
$this->info("Headers: " . implode(', ', $headers));
dd($rows[0]);
$progressBar = $this->output->createProgressBar(count($rows));
$progressBar->start();