Loading...
Loading...
Found 174 Skills
Store and serve files via Storage; set visibility, generate URLs, and handle streaming safely
Apply Spatie's Laravel and PHP coding standards for any task that creates, edits, reviews, refactors, or formats Laravel/PHP code or Blade templates; use for controllers, Eloquent models, routes, config, validation, migrations, tests, and related files to align with Laravel conventions and PSR-12.
Use when building or maintaining Laravel applications — Eloquent ORM, Blade, Livewire, queues, Pest testing, middleware, service providers, migrations. Trigger conditions: Laravel project setup, Eloquent model design, Blade or Livewire component creation, queue/job implementation, Pest test writing, middleware configuration, migration authoring, route definition, Form Request validation, policy authorization, Sanctum/Passport authentication, Horizon queue monitoring.
Enforce access via Policies and Gates; use authorize() and authorizeResource() to standardize controller protections
Operate and verify queues with or without Horizon; safe worker flags, failure handling, and test strategies
Reduce controller bloat using Form Requests for auth/validation, small Actions/Services with DTOs, and resource/single-action controllers
Safe database change patterns; when to modify vs add migrations; always pair models with migrations and factories; seeding guidance
Define clear relationships and load data efficiently; prevent N+1, use constraints, counts/sums, and pivot syncing safely
Prevent N+1 queries by eager loading; enable lazy-loading protection in non-production; choose selective fields
Wrap multi-write operations in transactions; use dispatchAfterCommit and idempotency patterns to ensure consistency
Apply RED-GREEN-REFACTOR with Pest or PHPUnit; use factories, feature tests for HTTP, and parallel test runners; verify failures before implementation
Schedule tasks with safety; use withoutOverlapping, onOneServer, and visibility settings for reliable cron execution