Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Eloquent Scope Assertion

Eloquent Scope Assertion Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Assert that a specific scope is applied to an Eloquent query
  • Works with model queries and relationships
  • Simple, readable test assertions with no SQL parsing
  • Integrates directly into PHPUnit or Pest test suites
  • Zero-config setup for existing Laravel applications
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core