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

Query Control Model Laravel Package

laravel-expansions/query-control-model

Query Control Model is a Laravel package that adds controllable query behaviour to Eloquent models, letting you define, restrict, and reuse model queries through clean, consistent APIs. It helps keep filtering and data access predictable across your application.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Patch-level dependency maintenance: v1.0.2 appears to be a narrow bug fix for with / withCount handling where comma splitting was applied incorrectly. This supports scheduling a routine upgrade rather than treating the release as a roadmap-level feature.
  • Build vs. buy: If the package already reduces custom parsing for Eloquent eager-loading and relation-count parameters, this fix strengthens the case to keep using it rather than maintaining bespoke query-parameter logic. It does not, by itself, justify replacing native Laravel with / withCount usage.
  • API/resource use cases: Relevant for products that dynamically accept relation includes or relation counts from request parameters, admin filters, dashboards, or API resource endpoints. Correct parsing behavior reduces the risk of broken eager-loading/counting when values are passed in different string or array forms.
  • Roadmap impact: None indicated. No new feature, deprecation, or breaking change is signaled in the release note. Treat v1.0.2 as a correctness/maintenance release and validate it through normal regression testing.

When to Consider This Package

Consider adopting or retaining this package when:

  • You need Laravel-friendly handling of dynamic with / withCount values and want to avoid custom comma-exploding logic.
  • Your application exposes relation includes or relation counts through APIs, admin tooling, reporting views, or configurable dashboards.
  • You value small, targeted patch releases and can absorb them through routine dependency updates.
  • The package has adequate tests, documentation, and maintenance activity around relation-loading edge cases.

Look elsewhere or use native Laravel APIs directly when:

  • Your needs are already covered by native with / withCount and simple request validation.
  • You require richer include syntax, filtering, security policy enforcement, or API query-language features beyond basic relation parsing.
  • The package’s release notes remain too terse to assess risk, or you cannot verify test coverage for string/array inputs, nested relations, and malformed values.
  • You cannot safely allowlist user-supplied relation names; dynamic eager loading should not become an authorization or performance bypass.

How to Pitch It (Stakeholders)

Executive summary: v1.0.2 is a small correctness fix for with / withCount handling. It does not add product capability or change strategy. The practical value is reduced risk in dynamic relation loading and lower need for custom parsing code. Recommend a routine upgrade with standard regression checks.

Engineering summary: The release note indicates the package corrected an incorrect comma-explode behavior for with and withCount values. No breaking changes or deprecations are indicated, but the note is terse. Before rollout, verify tests around array vs. string inputs, nested relation names, empty values, and malformed inputs. Confirm that user-controlled relation names are allowlisted and that eager-loading behavior remains stable.

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.
andydefer/laravel-notification
adachsoft/cli-process-tester
jhaskell13/laraflow
sebastienheyd/boilerplate-media-manager
ccast/tagixo-primix
pretendtrue/laravel-builder
sawmainek/laravel-scout-tntsearch-driver
tomshaw/laravel-calendar-table
dibakar/laravel-ownership
steadrun/laravel-monitor
labyrinthe/connect-laravel
elmogy/layan
drewdan/sentinel-client
dskripchenko/laravel-llm
fatryst/nuonuo
stevenay/myanfont
gmostafa/php-graphql-client
xeviant/paystack
snowsoft/faker
meditationsteps/blogetc