lip 2 tygodni temu
rodzic
commit
91294af274
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      app/Models/LhcLottery.php

+ 4 - 0
app/Models/LhcLottery.php

@@ -6,4 +6,8 @@ class LhcLottery extends BaseModel
     protected $table = 'lhc_lottery';
     protected $fillable = ['issue', 'open_code','open_time','is_settlement','next_open_time'];
 
+    protected function getNextOpenTimeAttribute($value): string
+    {
+        return $value ? date('Y-m-d H:i:s', $value) : '';
+    }
 }