'datetime', 'expires_at' => 'datetime', ]; } public function scopeActiveUuid(Builder $query, string $uuid): Builder { return $query ->where('uuid', $uuid) ->where('expires_at', '>', now()); } }