laravel:api-resources-and-pagination
Use API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly
laravel:api-surface-evolution
Evolve APIs safely using versioned DTOs/transformers, deprecations, and compatibility tests
laravel:blade-components-and-layouts
Compose UIs with Blade components, slots, and layouts; keep templates pure and testable
laravel:bootstrap-check
Detect Sail/non‑Sail and print the right command pairs for your environment; verify dependencies and key services are reachable
laravel:brainstorming
Interactive design refinement tailored to Laravel projects; clarify domain, data, interfaces, testing, and quality gates while accounting for Sail/non‑Sail environments
laravel:code-review-requests
Request effective code reviews—specify focus areas, provide context, ask for architectural feedback, reference Laravel conventions
laravel:complexity-guardrails
Keep cyclomatic complexity low; flatten control flow, extract helpers, and prefer table-driven/strategy patterns over large switches
laravel:config-env-storage
Portable storage configuration across S3/R2/MinIO with optional CDN—env toggles, path-style endpoints, and URL generation
laravel:constants-and-configuration
Replace hardcoded values with constants, enums, and configuration for maintainability; use PHP 8.1+ enums and config files
laravel:controller-cleanup
Reduce controller bloat using Form Requests for auth/validation, small Actions/Services with DTOs, and resource/single-action controllers
laravel:controller-tests
Write focused controller tests using HTTP assertions; keep heavy logic in Actions/Services and unit test them
laravel:custom-helpers
Create and register small, pure helper functions when they improve clarity; keep them organized and tested
laravel:daily-workflow
Practical daily checklist for Laravel projects; bring services up, run migrations, queues, quality gates, and tests
laravel:data-chunking-large-datasets
Process large datasets efficiently using chunk(), chunkById(), lazy(), and cursor() to reduce memory consumption and improve performance
laravel:debugging-prompts
Create effective debugging prompts—include error messages, stack traces, expected vs actual behavior, logs, and attempted solutions
laravel:dependencies-trim-packages
Remove unneeded Composer packages and assets to improve boot time, memory, and security surface
laravel:documentation-best-practices
Write meaningful documentation that explains why not what; focus on complex business logic and self-documenting code
laravel:e2e-playwright
Generic E2E patterns with Playwright—state setup, seeds, test IDs, auth, environment, and Sail integration
laravel:effective-context
Provide comprehensive context in prompts—files, errors, Laravel version, dependencies, and monorepo details—for accurate AI responses
laravel:eloquent-relationships
Define clear relationships and load data efficiently; prevent N+1, use constraints, counts/sums, and pivot syncing safely
laravel:exception-handling-and-logging
Use reportable/renderable exceptions, structured logs, and channel strategy for observability and graceful failures
laravel:executing-plans
Execute Laravel plans in small batches with checkpoints—TDD first, migrations safe, queues verified, and quality gates enforced
laravel:filesystem-uploads
Store and serve files via Storage; set visibility, generate URLs, and handle streaming safely
laravel:form-requests
Move validation and authorization into Form Requests; use rule objects, custom messages, and nested data handling to keep controllers slim
laravel:horizon:metrics-and-dashboards
Operate Horizon with confidence—naming, tags, concurrency, failure handling, actionable metrics, and dashboards
laravel:http-client-resilience
Use the HTTP client with sensible timeouts, retries, and backoff; capture context and handle failures explicitly
laravel:interfaces-and-di
Use interfaces and dependency injection to decouple code; bind implementations in the container
laravel:internationalization-and-translation
Build with i18n in mind from day one using Laravel translation helpers, JSON files, Blade integration, and locale management
laravel:iterating-on-code
Refine AI-generated code through specific feedback—point out errors, identify gaps, show desired changes, reference style guides
laravel:laravel-prompting-patterns
Use Laravel-specific vocabulary—Eloquent patterns, Form Requests, API resources, jobs/queues—to get idiomatic framework code
laravel:migrations-and-factories
Safe database change patterns; when to modify vs add migrations; always pair models with migrations and factories; seeding guidance
laravel:nova:resource-patterns
Consistent Nova resources—fields, actions, metrics, lenses, filters, authorization—and how to evolve resources alongside schema changes
laravel:performance-caching
Use framework caches and value/query caching to reduce work; add tags, locks, and explicit invalidation strategies for correctness
laravel:performance-eager-loading
Prevent N+1 queries by eager loading; enable lazy-loading protection in non-production; choose selective fields
laravel:performance-select-columns
Select only required columns to reduce memory and transfer costs; apply to base queries and relations
laravel:policies-and-authorization
Enforce access via Policies and Gates; use authorize() and authorizeResource() to standardize controller protections
laravel:ports-and-adapters
Use hexagonal architecture for external systems; define ports (interfaces) and per-provider adapters; select adapter at composition edge
laravel:prompt-structure
Structure prompts for clarity—separate concerns, prioritize requests, specify acceptance criteria, and break work into testable increments
laravel:quality-checks
Unified quality gates for Laravel projects; Pint, static analysis (PHPStan/Psalm), Insights (optional), and JS linters; Sail and non-Sail pairs provided
laravel:queues-and-horizon
Operate and verify queues with or without Horizon; safe worker flags, failure handling, and test strategies
laravel:rate-limiting
Apply per-user and per-route limits with RateLimiter and throttle middleware; use backoffs and headers for clients
laravel:routes-best-practices
Keep routes clean and focused on mapping requests to controllers; avoid business logic, validation, or database operations in route files
laravel:runner-selection
Choose Sail automatically when available, fall back cleanly to host PHP/Composer/Node; paired command map for both environments
laravel:specifying-constraints
Define clear constraints—performance, security, testing, architecture, dependencies—so AI generates code that meets your project standards
laravel:strategy-pattern
Use the Strategy pattern to select behavior at runtime; bind multiple implementations to a shared interface
laravel:task-scheduling
Schedule tasks with safety; use withoutOverlapping, onOneServer, and visibility settings for reliable cron execution
laravel:tdd-with-pest
Apply RED-GREEN-REFACTOR with Pest or PHPUnit; use factories, feature tests for HTTP, and parallel test runners; verify failures before implementation
laravel:template-method-and-plugins
Stabilize workflows with Template Method or Strategy; extend by adding new classes instead of editing core logic
laravel:transactions-and-consistency
Wrap multi-write operations in transactions; use dispatchAfterCommit and idempotency patterns to ensure consistency
laravel:using-examples-in-prompts
Provide concrete examples—existing code patterns, style samples, input/output pairs—to guide AI toward your project's conventions
Page 1 of 2 · 52 results