Skillshub laravel-performance-select-columns

Select Only Needed Columns

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/noartem/skills/laravel-performance-select-columns" ~/.claude/skills/comeonoliver-skillshub-laravel-performance-select-columns && rm -rf "$T"
manifest: skills/noartem/skills/laravel-performance-select-columns/SKILL.md
source content

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