- /**
- * Get created date as a relative diff.
- */
- public function getCreatedAttribute(): string
- {
- return $this->created_at->diffForHumans();
- }
-
- /**
- * Get updated date as a relative diff.
- */
- public function getUpdatedAttribute(): string
- {
- return $this->updated_at->diffForHumans();
- }
-