Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.
87
89%
Does it follow best practices?
Impact
76%
1.04xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Laravel N+1 query optimization for blog listing page
preventLazyLoading configured
85%
100%
withCount for comments
100%
100%
Eager load author
100%
100%
Eager load category
100%
100%
Constrained author eager load
100%
100%
Constrained eager load retains id
100%
100%
Posts query omits body column
100%
100%
Foreign keys retained in posts select
100%
100%
No queries in Blade template
100%
100%
Deterministic sort order
100%
100%
Unique sort tie-breaker
0%
0%
Secure user profile update endpoint
Form request class
100%
100%
Array validation syntax
100%
100%
Ownership authorization
100%
40%
Validated data passed to model
100%
100%
Fillable protection
100%
100%
Implicit route model binding
0%
0%
Resource route declaration
0%
0%
Combined-key rate limiter
0%
0%
Typed request accessors
0%
0%
Encrypted cast for phone
100%
100%
Phone hidden from serialization
100%
100%
Text column for encrypted phone
0%
100%
5b33d49
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.