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.
92
96%
Does it follow best practices?
Impact
83%
1.23xAverage score across 3 eval scenarios
High
Do not use without reviewing
Eloquent query optimization and caching patterns
addSelect() subquery
100%
100%
whereIn() over whereHas()
20%
0%
Conditional aggregate selectRaw()
100%
100%
toBase() on aggregate query
37%
100%
Cache::flexible() for featured posts
100%
100%
Cache::remember() elsewhere
25%
0%
once() memoization
0%
0%
withCount() for comment counts
100%
100%
preventLazyLoading in AppServiceProvider
87%
100%
whereBelongsTo() usage
12%
100%
Collection higher-order messages
0%
0%
lazy() not cursor()
100%
100%
Resilient queue job with external API integration
Exponential backoff array
100%
100%
retry_after > timeout
0%
100%
failed() method implemented
100%
100%
ShouldBeUnique interface
100%
100%
uniqueId() method
100%
100%
HTTP connectTimeout set
0%
100%
HTTP timeout set
100%
100%
Http::retry() with array
0%
30%
HTTP status checked or throw()
100%
100%
Constructor injection used
100%
100%
Laravel order placement: controller, form request, migration, model, action class
Thin controller method
0%
100%
Form Request class
100%
100%
Form Request type-hint
100%
100%
Uses $request->validated()
100%
100%
Array rule syntax
100%
100%
Rule::when() for conditional
100%
100%
Action class
50%
87%
Implicit route model binding
60%
100%
Migration indexes
0%
100%
constrained() foreign key
100%
100%
Model $attributes default
0%
100%
Class constants for status
100%
0%
Authorization
50%
50%
Mass assignment protection
100%
100%
21009e9
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.