laravelusing-laravel-superpowers
Read the Laravel repository first and explain runner choices (Sail vs non‑Sail) and core workflows, describing how to apply 'superpower' skills in a Laravel project while avoiding
45 published skills on SKILLPI
Original profile ↗Read the Laravel repository first and explain runner choices (Sail vs non‑Sail) and core workflows, describing how to apply 'superpower' skills in a Laravel project while avoiding
Define clear Eloquent relationships and load data efficiently to avoid N+1 issues, applying constraints, counts/sums, and safe pivot-table synchronization.
Remove unnecessary Composer packages and assets to improve application startup time, reduce memory usage, and shrink the potential security surface.
Keep routes simple: use routes only to map requests to controllers, and avoid putting business logic, validation, or database operations in route files.
Use the hexagonal architecture for external systems: define ports (interfaces) and implement adapters for each provider, choosing adapters at the composition boundary.
Laravel daily workflow checklist: practical items to start services, run migrations, process queues, enforce quality gates, and run tests.
Replace hard-coded values in code with constants, enums and configuration entries to improve maintainability and readability. Use PHP 8.1+ enums and move variable parameters into c
Move validation and authorization logic into Form Requests, using rule objects, custom messages and nested data handling to keep controllers slim and centralize request-related log
Provide a unified quality gate for Laravel projects: include Pint, static analysis (PHPStan/Psalm), optional Insights, and JS code checks; offer both Sail and non‑Sail configuratio
Write focused controller tests using HTTP assertions to verify behavior; keep complex logic in Actions/Services and unit‑test them to keep controllers simple and testable.
Enforce access control via Policies and Gates; standardize controller protection logic using the authorize() and authorizeResource() methods.
Schedule tasks safely: use withoutOverlapping, onOneServer, and visibility settings to ensure cron jobs run reliably and avoid concurrent conflicts.
Execute Laravel plans in small batches with checkpoints. Start with test-driven development (TDD) to ensure safe migrations, validate queue behavior, and enforce quality gates to r
Provide an HTTP client implementation with sensible timeouts, retries, and backoff; explicitly capture call context and handle failure scenarios.
laravelperformance-select-columns: reduce memory and transfer costs by selecting only required columns, applicable to base queries and relationship queries to improve performance.
laravelrequest-forgery-protection: configure CSRF and origin-based request forgery protections using the PreventRequestForgery middleware (Laravel 13+), with support for token fall
Guidance on safe database migration patterns: when to modify existing migration files versus creating new migration files, the practice of always pairing models with migration file
Writing prompts and code patterns that follow Laravel conventions using framework‑specific terms (Eloquent patterns, Form Requests, API resources, jobs/queues), aimed at guideline‑
Automatically choose the available runtime: prefer Sail when available and gracefully fall back to a local PHP/Composer/Node environment when not; provide paired command mappings f
laravele2e-playwright: a Playwright end-to-end pattern covering state setup, seed data, test IDs, authentication, environment configuration, and integration with Sail.
Provide API resources with pagination and conditional fields, maintaining a stable response structure for caching and client consistency.