agentsclimarketplace

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.

Install
npx -y skills add ComeOnOliver/skillshub --skill laravel-performance-select-columns

Assembled 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

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.