Laravel performance select columns
Skill ComeOnOliver/skillshub/skills/noartem/skills/laravel-performance-select-columns
🧠The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.
npx -y skills add ComeOnOliver/skillshub --skill laravel-performance-select-columnsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.3 KB, 73 tokens by cl100k_base, as published. Nobody here has run it
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