develop-laravel-feature
Installation
SKILL.md
Develop Laravel Feature
Use this skill when building or modifying features in a Laravel 13 monolith using Filament v4 for admin, Livewire 3 for interactive components, and Blade for static rendering.
Stack baseline (2026): Laravel 13, Filament v4, Livewire 3, PHP 8.3+, TailwindCSS v4, Pest PHP v5.
Core Rules
- Thin Controller: Controllers validate (FormRequest) and return views/responses. Business logic goes in
app/Actions/orapp/Services/. - Livewire islands only: Use Livewire for interactive widgets (drawers, modals, dynamic forms). Static pages and listings render with pure Blade.
- DB transactions: Multi-table writes must use
DB::transaction(). - Soft deletes: Models referenced by foreign keys should use
SoftDeletes. - FormRequest always: Never validate inside controllers or Livewire components directly — use FormRequest or Livewire
#[Validate]attributes. - Queue for I/O: Email, notifications, and external API calls go through the queue.
- Laravel Reverb: Use Reverb for WebSockets — not Pusher — in new installations.
- Laravel Pulse: Check Pulse dashboard for slow queries, queue failures, and exceptions in dev.