https://github.com/wendelladriel/eloquent-query-classes
AI agent skill for applying the Eloquent Query Classes pattern in Laravel applications.
https://github.com/wendelladriel/eloquent-query-classes
database eloquent laravel queries
Last synced: about 16 hours ago
JSON representation
AI agent skill for applying the Eloquent Query Classes pattern in Laravel applications.
- Host: GitHub
- URL: https://github.com/wendelladriel/eloquent-query-classes
- Owner: WendellAdriel
- License: mit
- Created: 2026-06-09T12:26:14.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-06-09T12:31:13.000Z (about 1 month ago)
- Last Synced: 2026-06-09T14:16:45.935Z (about 1 month ago)
- Topics: database, eloquent, laravel, queries
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eloquent Query Classes Skill
[](https://skills.sh/wendelladriel/eloquent-query-classes/eloquent-query-classes)
An AI agent skill for applying the Eloquent Query Classes pattern in Laravel applications.
Use it when you want an assistant to extract, design, review, or test named Eloquent query classes without turning them into repositories or unnecessary abstractions.
## Installation
```bash
npx skills add wendelladriel/eloquent-query-classes
```
For Laravel Boost:
```bash
php artisan boost:add-skill wendelladriel/eloquent-query-classes
```
## What It Covers
- When to keep Eloquent directly in controllers, jobs, commands, or actions.
- When to extract a query into a dedicated class.
- How to structure query classes around one `handle()` method.
- How query classes differ from repositories and local scopes.
- When returning an Eloquent `Builder` is the right choice.
- How to test query classes with Laravel factories and database tests.
## Skill Structure
```text
skills/
eloquent-query-classes/
SKILL.md
rules/
query-class-rules.md
examples/
pending-orders-query.md
```
## License
MIT