laravel:performance-select-columns

Installation
SKILL.md

Select Only Needed Columns

Reduce payloads by selecting exact fields:

User::select(['id', 'name'])->paginate();

Post::with(['author:id,name'])->select(['id','author_id','title'])->get();
  • Avoid *; keep DTOs/resources aligned with selected fields
  • Combine with eager loading to avoid N+1
Installs
90
GitHub Stars
140
First Seen
Jan 21, 2026
laravel:performance-select-columns — jpcaparas/superpowers-laravel