create new command for insert init spatial plannings dan remove unused retribution tables
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user