ia-php-laravel

Generate Laravel and PHP 8.4 code with disciplined architecture and consistent typing.

30|3|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/iliaal/whetstone --skill ia-php-laravel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ia-php-laravel
Source: https://github.com/iliaal/whetstone/tree/main/plugins/whetstone/skills/ia-php-laravel
Command: npx skills add https://github.com/iliaal/whetstone --skill ia-php-laravel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Prevents AI-generated Laravel/PHP code from drifting into undisciplined architecture, fragile error handling, and unverified changes by enforcing consistent engineering standards.

Core Features & Use Cases

  • Modern PHP 8.4 + Laravel idioms: consistent typing, readability conventions, and production-ready patterns.
  • Architecture over patching: thin controllers, service/action layers, Form Requests for boundary validation, and events/listeners for side effects.
  • Reliability and correctness: health endpoints guidance, queue/job resilience, and rigorous PHPUnit practices with strong assertions.

Quick Start

Ask the AI to implement a new Laravel controller + service for user profiles with Form Request validation, API Resource response, PHPUnit feature tests, and the relevant Eloquent optimizations.

Frequently Asked Questions about ia-php-laravel

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure Laravel controllers and services to avoid bloated code?

To avoid bloated Laravel code, use thin controllers that delegate business logic to service or action layers, and handle boundary validation via Form Requests. This separation ensures consistent architecture and maintains readability as your application grows.

What is the best way to validate API requests in Laravel before hitting the controller?

The best way to validate API requests in Laravel is using Form Requests for boundary validation. This approach keeps controllers thin by moving validation rules out of the controller logic and ensuring only validated data reaches your services.

Does this approach work with PHP 8.4 and modern Laravel queue jobs?

Yes, this approach works with PHP 8.4 and modern Laravel queue jobs by enforcing consistent typing and production-grade reliability. It provides guidance on queue resilience and side effect management using events and listeners.

How do I write deterministic PHPUnit tests for Eloquent models in Laravel?

Writing deterministic PHPUnit tests for Eloquent models requires strong assertions and checking query efficiency. The process ensures your feature tests are reliable and do not produce flaky results due to unoptimized database interactions.

Why do my AI-generated Laravel migrations and routes lack consistent API responses?

AI-generated Laravel code often lacks consistent API responses because it drifts into undisciplined architecture. Enforcing a consistent API response envelope through API Resources ensures uniform output and prevents fragile error handling.