Search by

atannex / scopable

Atanga1920

Declarative state and date scopes for Laravel Eloquent: published / scheduled / draft, active flags, schedule windows, expiry, highlights, limits and composites, with matching PHP checks, mutators, period scopes (createdThisWeek, publishedWithin), default states and transition events.

Package info

github.com/atannex/scopable

pkg:composer/atannex/scopable

Statistics

Installs: 116

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

v1.0.0 2026-10-25 00:43 UTC

This package is auto-updated.

Last update: 2026-10-30 11:14:53 UTC


README

Gives Laravel models ready-made states and date filters. You declare once what published, scheduled, draft, active or expired means for a model, and get matching database queries (such as published() or createdThisWeek()), the same checks on a single record, and events when a record changes state. It can also add matching tabs and filters to Filament admin pages.

Install

composer require atannex/scopable