tonysm/globalid-laravel
GlobalID for Laravel brings Rails-style global identifiers to Eloquent models. Generate and parse stable gid:// strings for any model record, create signed GlobalIDs for secure expiration, and use them in jobs, URLs, and APIs without exposing raw IDs.
Architecture fit
tonysm/globalid-laravel implements GlobalID-style opaque model references (signed/encrypted "locator" strings that resolve back to an Eloquent model instance), which is a well-understood pattern from Rails. It fits cleanly into Laravel's service-container/eloquent conventions and is most valuable where model identifiers cross a trust boundary: queued jobs, webhook payloads, public APIs, and URLs that should not expose sequential primary keys.Integration feasibility
APP_KEY (or the package's cipher key) would have invalidated every outstanding GID. Rotation support removes a hard operational constraint and makes the package viable for teams with key-rotation compliance requirements. This is a genuine enabler, not a convenience.Technical risk
ModelNotFoundException or a null return, which is easy to swallow in a try/catch and hard to observe. Absent explicit metrics, a fallback removal can degrade quietly.Key questions
Stack fit
HasUuids/HasUlids and signed URLs. Decision to record: UUID/ULID solves enumeration but not class disclosure or tamper-resistance; GlobalID solves both. We should pick one convention per surface and document it, otherwise we will end up with two identifier idioms in the same API.Migration path
Compatibility
Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
How can I help you explore Laravel packages today?