'date', 'avatar_updated_at'=> 'datetime', 'auto_post_upload' => 'boolean', 'email_notifications' => 'boolean', 'upload_notifications' => 'boolean', 'follower_notifications' => 'boolean', 'comment_notifications' => 'boolean', 'newsletter' => 'boolean', ]; public $timestamps = true; public function user(): BelongsTo { return $this->belongsTo(User::class, 'user_id'); } public function getAvatarUrlAttribute(): ?string { if (empty($this->user_id)) { return null; } return AvatarUrl::forUser((int) $this->user_id, $this->avatar_hash, 128); } }