Skip to content
Back to skills

Laravel Performance Select Columns

ASecurity

Reduce payloads by selecting exact fields: ```php 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

  • 67 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 10, 2026
ai-agentsphp

Security analysis

A100/100

Scanned November 10, 2026

npx -y skills add ComeOnOliver/skillshub --skill laravel-performance-select-columns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Laravel Performance Select Columns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Laravel Performance Select Columns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/comeonoliver-laravel-performance-select-columns/badge)](https://www.skillsdirectory.com/skills/comeonoliver-laravel-performance-select-columns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Select Only Needed Columns

Reduce payloads by selecting exact fields:

```php
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.