laravel-performance-select-columns
Originally fromnoartem/laravel-vue-skills
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
Weekly Installs
11
Repository
noartem/skillsGitHub Stars
5
First Seen
Jan 30, 2026
Security Audits
Installed on
opencode10
cursor9
github-copilot8
codex8
kimi-cli8
gemini-cli8