???? 'string', 'sent_to' => 'string', 'title' => 'string', 'description' => 'string', 'notification_count' => 'integer', 'image' => 'string', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; public function scopeActive($query):mixed { return $query->where('status', 1); } /* notification_seen_by -> notificationSeenBy */ public function notificationSeenBy():HasOne { return $this->hasOne(NotificationSeen::class, 'notification_id'); } }