Claude Code Plugins

Community-maintained marketplace

Feedback

laravel-controllers

@leeovery/claude-laravel
4
0

Thin HTTP layer controllers. Controllers contain zero domain logic, only HTTP concerns. Use when working with controllers, HTTP layer, web vs API patterns, or when user mentions controllers, routes, HTTP responses.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name laravel-controllers
description Thin HTTP layer controllers. Controllers contain zero domain logic, only HTTP concerns. Use when working with controllers, HTTP layer, web vs API patterns, or when user mentions controllers, routes, HTTP responses.

Laravel Controllers

Thin HTTP layer: controllers contain zero domain logic, only HTTP concerns.

Core Concept

controllers.md - Complete controller guide:

  • Zero domain logic in controllers
  • Web layer vs public API distinction
  • Invokable controller pattern
  • Query objects for filtering/sorting
  • Proper delegation to actions
  • Response patterns

Pattern

final readonly class CreateOrderController
{
    public function __invoke(
        CreateOrderRequest $request,
        CreateOrderAction $action,
    ): RedirectResponse {
        $order = $action($request->toDto());

        return redirect()->route('orders.show', $order);
    }
}

Controller responsibilities:

  • HTTP request/response transformation
  • Routing to appropriate action
  • Authentication/authorization checks (via middleware/policies)
  • Nothing else

Domain logic lives in actions.