bernskiold/laravel-activatable
A Laravel package that adds activatable behavior to Eloquent models. Easily activate or deactivate records, query only active or inactive entries with built-in scopes, and keep model status handling clean and consistent across your application.
is_active columns and ad-hoc scopes across models with one consistent convention. It is a low-cost dependency versus building and maintaining the same behavior in-house.Consider it when:
SoftDeletes where "inactive but present" is the required semantics.status column implementations.Look elsewhere when:
status enum pattern; adding this package may duplicate logic.Executives: This is a small, low-risk utility that standardizes how we "turn things off without deleting them" — supporting account suspension, content moderation, and safe data retention. A 1.0.0 release signals API stability, and the footprint is minor, so adoption cost is low and it reduces bespoke code we would otherwise maintain.
Engineering: laravel-activatable offers a reusable trait plus query scopes for active/inactive records, letting you replace inconsistent is_active columns and one-off scopes with a single convention. It is easy to adopt incrementally per model and simple to test. Caveat: version 1.0.0's release notes contain only a changelog link, so validate the actual feature set, Laravel compatibility, and test coverage against the README before rollout; this fits binary activation states but not complex state machines.
How can I help you explore Laravel packages today?