diff --git a/app/Jobs/GenerateBiayaKartuCsvJob.php b/app/Jobs/GenerateBiayaKartuCsvJob.php index 6814080..d02dac0 100644 --- a/app/Jobs/GenerateBiayaKartuCsvJob.php +++ b/app/Jobs/GenerateBiayaKartuCsvJob.php @@ -24,14 +24,15 @@ 'SILV' => 5000, 'GOLD' => 10000 ]; - private const CSV_FILENAME = 'atmcards.csv'; + // Changed from const to property + private $csvFilename; /** * Create a new job instance. */ public function __construct() { - // + $this->csvFilename = env('BIAYA_KARTU_CSV_FILENAME', 'biaya_kartu_atm.csv'); } /** @@ -71,7 +72,7 @@ : array { $cards = $this->getEligibleAtmCards(); - $filename = storage_path('app/' . self::CSV_FILENAME); + $filename = storage_path('app/' . $this->csvFilename); $handle = fopen($filename, 'w+'); if (!$handle) {