diff --git a/app/Models/Reminder.php b/app/Models/Reminder.php index 72a803a..15b480e 100644 --- a/app/Models/Reminder.php +++ b/app/Models/Reminder.php @@ -19,7 +19,15 @@ public function packageName() { return $this->belongsTo(PackageName::class); } + public function setTimeAttribute($value) + { + $this->attributes['time'] = \Carbon\Carbon::parse($value)->format('Y-m-d H:i:s.u'); + } + public function getTimeAttribute($value) + { + return $value; // Return as is, or format if needed + } public function user() { return $this->belongsTo(User::class);