sassnowski/laravel-shareable-models
Laravel package that turns any Eloquent model into a shareable resource with unique, revocable URLs. Add a trait, generate share links, and let recipients view records without writing custom sharing controllers, routes, or token handling.
/invoices/1234 — instead of letting each feature improvise. Worth standardizing on early.Consider it when:
Look elsewhere when:
Executives: A small, free (MIT), single-purpose library that lets us add "share this with someone outside the app" in days rather than a quarter. It generates unguessable, revocable links to individual records — no external accounts, no new permissions model, no new vendor relationship. Cost is near zero and the blast radius is small. The real risk is maintenance: last release was 2023, so we should treat it as code we own. Recommendation: adopt it behind a thin internal abstraction so we can fork or replace it without touching product code.
Engineering: One trait on the model, one polymorphic table, tokens instead of IDs. Wrap it in our own ShareLinkService so the package stays an implementation detail; add rate limiting, logging, and any access analytics at our layer, because the package won't provide them. Budget half a day for integration plus a compatibility check against our Laravel version, and assume we may need to fork for future framework upgrades. Exit cost is low by design — that's the main reason to say yes.
How can I help you explore Laravel packages today?