/legacy-users) for internal tools or third-party consumers without exposing write capabilities.Adopt when:
save(), delete).Look elsewhere if:
creating, updating) and need granular control over them (this package blocks all write operations).SELECT permissions) over application-layer enforcement.*"This package lets us lock down critical data in our Laravel apps with zero custom code—think of it as a 'read-only mode' for specific database tables. For example, we could use it to:
*"The ReadOnlyTrait is a drop-in solution to make Eloquent models immutable. Key benefits:
save(), delete(), update(), etc.) with clear exceptions.use ReadOnlyTrait in your model.LegacyUser, AuditLog, or SystemConfig models where writes should never happen. Pair with middleware to log attempts."**"Need to prevent saves/deletes on a model? This trait does it in one line:
class LegacyUser extends Model {
use ReadOnlyTrait; // Boom. Done.
}
ReadOnlyException with clear error messages.How can I help you explore Laravel packages today?