0072-laravel-query-builders

Community

Build type-safe, composable Laravel queries.

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It solves the problem of tangled, untyped query logic in Laravel apps by showing how to centralize database filtering and composition into reusable custom builders instead of scattered local scopes.

Core Features & Use Cases

  • Custom query builders instead of local scopes: Move query methods into builder classes for cleaner organization and easier reuse.
  • Type-safe nested relationship queries: Use type-hinted closures for strong IDE autocomplete and safer composition in whereHas/orWhereHas.
  • Composable chaining and reusable traits: Extract repeatable query fragments into builder traits and chain builder methods for complex filtering flows.

Quick Start

Use the 0072-laravel-query-builders Skill to implement your next Eloquent query builder class with type-safe relationship filters, register it on the model, and replace any local scopes you find with builder methods.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0072-laravel-query-builders
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0072-laravel-query-builders

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.