mpyw/laravel-local-class-scope
A tiny Laravel macro that lets you reuse global scope classes as local query scopes. Call User::scoped(ActiveScope::class) or pass constructor arguments, chain scopes, and optionally wrap them in model methods or traits. Includes a PHPStan extension for static analysis.
scoped method by @ngmy in https://github.com/mpyw/laravel-local-class-scope/pull/11Full Changelog: https://github.com/mpyw/laravel-local-class-scope/compare/v2.2.1...v2.2.2
Full Changelog: https://github.com/mpyw/laravel-local-class-scope/compare/v2.2.0...v2.2.1
Full Changelog: https://github.com/mpyw/laravel-local-class-scope/compare/v2.1.2...v2.2.0
How can I help you explore Laravel packages today?