From superpowers-laravel
Implements Laravel Form Requests to handle validation and authorization with rule objects, custom messages, nested data, and testing to keep controllers slim.
npx claudepluginhub jpcaparas/superpowers-laravel --plugin superpowers-laravelThis skill uses the workspace's default tool permissions.
Promote validation and authorization to dedicated Form Request classes. Keep controllers focused on orchestration and domain intents.
Provides Laravel validation patterns using Form Requests, custom rules, conditional validation, and input sanitization. Useful for form handling and data validation in Laravel apps.
Reduces Laravel controller bloat by moving auth/validation to Form Requests, extracting logic to Actions/Services with DTOs, and using resource/single-action controllers. Useful for refactoring bloated controllers.
Provides Laravel patterns for controllers, services, Eloquent ORM, routing, queues, events, caching, and API resources in production apps.
Share bugs, ideas, or general feedback.
Promote validation and authorization to dedicated Form Request classes. Keep controllers focused on orchestration and domain intents.
# Create a request
sail artisan make:request UpdateProfileRequest # or: php artisan make:request UpdateProfileRequest
# Use in controller method signature
public function update(UpdateProfileRequest $request) {
$data = $request->validated();
// ...
}
authorize() to gate access; prefer Policies for complex checksRule::unique('users', 'email')->ignore($user->id)items.*.sku, addresses.home.citynullable + specific rules instead of sometimes for optional fieldsattributes() and messages()Rule classes or traits$request->safe()->only([...]) when partial updates are intended