$params * @property string $dedupe_key * @property CarbonImmutable|null $seen_at * @property CarbonImmutable $created_at */ #[Table('user_notifications')] #[Fillable(['user_id', 'type', 'params', 'dedupe_key', 'seen_at', 'created_at'])] class NotificationModel extends Model { /** * @return array */ protected function casts(): array { return [ 'user_id' => 'integer', 'type' => NotificationType::class, 'params' => 'array', 'seen_at' => 'immutable_datetime', 'created_at' => 'immutable_datetime', 'updated_at' => 'immutable_datetime', ]; } }