laravelexception-handling-and-logging
Use reportable/renderable exceptions, structured logging, and channel strategies to achieve observability and graceful failure handling.
45 published skills on SKILLPI
Original profile ↗Use reportable/renderable exceptions, structured logging, and channel strategies to achieve observability and graceful failure handling.
Decouple code by using interfaces and dependency injection, and bind implementations in the container. Suitable for development scenarios that require reducing coupling through int
Build UIs using Blade components, slots, and layouts while keeping templates clean and testable.
Wrap multiple write operations in a database transaction; dispatch jobs using dispatchAfterCommit after the transaction commits; combine with idempotency patterns to ensure consist
Apply the red‑green‑refactor workflow using Pest or PHPUnit, employing factories and feature tests for HTTP testing and a parallel test runner, validating failing cases before impl
Stabilizes workflows using the template method or strategy pattern; extend by adding new classes rather than modifying core logic.
Safely upgrade an application from Laravel 12.x to 13.x; based on PHP 8.3, includes dependency upgrades, a checklist of breaking changes, and verification steps.
Build AI features using the official Laravel AI SDK (Laravel 13+); implement agents, embeddings, image, audio, and tool calls via a vendor-agnostic API.
Store and serve files via a storage service; set visibility, generate URLs, and handle streaming securely.
Apply RateLimiter and throttle middleware to set limits per user and per route; provide client-side backoff behavior and response headers.
Specify clear constraints for AI-generated code—covering performance, security, testing, architecture, and dependencies—to ensure compliance with project standards.
Create prompt templates for debugging Laravel issues that include error messages, stack traces, comparisons of expected vs. actual behavior, relevant logs, and attempted solutions
Keep cyclomatic complexity low: flatten control flow, extract helper functions, and favor table-driven or strategy patterns over large switch statements to improve maintainability.
Confidently operate Horizon: focus on naming, tagging, concurrency, failure handling, and actionable metrics and dashboards.
Laravel brainstorming: interactively optimize project design by clarifying domain, data, interfaces, tests, and quality gates, accommodating both Sail and non‑Sail environments.
Request effective code reviews: state clear review goals, provide necessary context, solicit architectural feedback, and reference Laravel conventions so reviewers can focus.
Create and register small, pure helper functions when they improve code clarity; keep them well organized and tested to ensure reliability.
Maintain consistent Nova resource patterns—fields, actions, metrics, lenses, filters, and authorization—and document how to evolve resources when patterns change.
Use methods like chunk(), chunkById(), lazy(), and cursor() to process large datasets efficiently, reducing memory usage and improving processing performance.
Prevent N+1 queries by using eager loading; enable lazy-loading protection in non-production environments to catch issues; selectively load fields as needed to reduce data transfer
Apply operational controls and validation for queue processing whether or not using Horizon; ensure workers have clear safety markers, establish failure-handling strategies, and de
Use Form Requests to handle authentication and validation to keep controllers slim; split business logic into small action/service classes paired with data transfer objects (DTOs);
Add native vector-query semantic search capabilities for Laravel 13+; includes pgvector similarity clauses, embedding workflows, and hybrid search modes.
Evolve the API surface safely using versioned DTOs/converters, deprecation mechanisms, and compatibility tests.