Loading...
Loading...
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.
npx skill4agent add laravel/boost laravel-best-practicessearch-docsrules/db-performance.mdwith()Model::preventLazyLoading()SELECT *chunk()chunkById()WHEREORDER BYJOINwithCount()cursor()rules/advanced-queries.mdaddSelect()belongsToCASE WHENselectRawsetRelation()whereInpluck()whereHasorderByorderByrules/security.md$fillable$guarded{{ }}@csrfthrottle.envconfig()encryptedrules/caching.mdCache::remember()Cache::flexible()Cache::memo()Cache::add()once()Cache::lock()lockForUpdate()rules/eloquent.mdcasts()whereBelongsTo($model)(new Model)->getTable()rules/validation.md['required', 'email']$request->validated()$request->all()Rule::when()after()withValidator()rules/config.mdenv()App::environment()app()->isProduction()rules/testing.mdLazilyRefreshDatabaseRefreshDatabaseassertModelExists()assertDatabaseHas()Event::fake()Exceptions::fake()recycle()rules/queue-jobs.mdretry_aftertimeout[1, 5, 10]ShouldBeUniqueWithoutOverlapping::untilProcessing()failed()retryUntil()$tries = 0RateLimitedBus::batch()rules/routing.mdRoute::resource()apiResource()rules/http-client.mdtimeoutconnectTimeoutretry()throw()Http::pool()Http::fake()preventStrayRequests()rules/events-notifications.mdrules/mail.mdevent:cacheShouldDispatchAfterCommitafterCommit()ShouldQueueHasLocalePreferenceassertQueued()assertSent()rules/error-handling.mdreport()render()bootstrap/app.phpShouldntReportdontReportDuplicates()context()rules/scheduling.mdwithoutOverlapping()onOneServer()runInBackground()environments()takeUntilTimeout()rules/architecture.mdapp()ORDER BY id DESCcreated_at DESCmb_*defer()ContextConcurrency::run()rules/migrations.mdphp artisan make:migrationconstrained()$attributesdown()rules/collections.mdcursor()lazy()lazyById()toQuery()rules/blade-views.md$attributes->merge()@include@pushOnce@awarerules/style.mdStrArrNumberUriStr::of()$request->string()search-docs