laravel-query-builder

Community

Build clean API filtering with Laravel.

Authoralimarchal
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enables developers to assemble robust API endpoints by leveraging Spatie's Laravel Query Builder to apply filters, sorts, includes, and field selections in a consistent, predictable way, reducing boilerplate and errors.

Core Features & Use Cases

  • Configures allowedFilters, allowedSorts, allowedIncludes, and allowedFields to control query parameters
  • Supports advanced features such as relation filters, nested includes, custom filters and sorts, and aggregate includes
  • Provides guidance for common patterns like starting from existing queries and dynamically composing filters and sorts for common API scenarios

Quick Start

Create an API endpoint for users that supports filter, sort, and include using Spatie's Laravel Query Builder.

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: laravel-query-builder
Download link: https://github.com/alimarchal/school/archive/main.zip#laravel-query-builder

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 510,000+ vetted skills library on demand.