diff --git a/app/Console/Commands/GoldPriceUpdate.php b/app/Console/Commands/GoldPriceUpdate.php index 51bf3e6..51de199 100644 --- a/app/Console/Commands/GoldPriceUpdate.php +++ b/app/Console/Commands/GoldPriceUpdate.php @@ -37,7 +37,7 @@ class GoldPriceUpdate extends Command // print_r($data); if (isset($data->gold)) { $s = Setting::where('key', 'gold')->first(); - $s->value = $data->gold / 10; + $s->value = floor($data->gold / 10); $s->save(); $this->info('Price updated successfully'); }else{