From superpowers-laravel
Optimizes Laravel Eloquent queries by selecting only required columns in base queries and relations to reduce memory and data transfer costs. Pairs with eager loading to prevent N+1 issues.
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelThis skill uses the workspace's default tool permissions.
Reduce payloads by selecting exact fields:
Prevents N+1 queries in Laravel by guiding eager relation loading, selective field selection, and non-production lazy-loading protection. Optimizes DB performance.
Applies Laravel Eloquent best practices for query optimization, eager loading to avoid N+1, relationships, mass assignment protection, casts, and chunking large datasets.
Provides expert Laravel patterns for PHP 8.2+ including Eloquent ORM best practices, N+1 prevention, efficient queries, atomic operations, query optimization, and RESTful API controllers.
Share bugs, ideas, or general feedback.
Reduce payloads by selecting exact fields:
User::select(['id', 'name'])->paginate();
Post::with(['author:id,name'])->select(['id','author_id','title'])->get();
*; keep DTOs/resources aligned with selected fields