tkaratug/eloquent-scope-assertion
A lightweight Laravel testing helper for asserting that Eloquent model scopes apply the expected query constraints. Write expressive, readable tests for your local scopes without brittle SQL comparisons, and keep your query logic verified and maintainable.
Eloquent Scope Assertion is a lightweight Laravel testing package that lets you assert whether an Eloquent local scope is applied to a query. It adds a assertScope-style helper, so instead of inspecting the generated SQL manually, you can verify that a model's scope—such as active() or published()—is actually present in a given query or relation. Useful for keeping scope-based filtering trustworthy as your models grow.
How can I help you explore Laravel packages today?