This commit is contained in:
2025-12-12 22:41:16 +03:30
parent 152bf6471c
commit ccc5c9e16f
+8 -8
View File
@@ -19,15 +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 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 getTimeAttribute($value)
// {
// return $value; // Return as is, or format if needed
// }
public function user()
{
return $this->belongsTo(User::class);