PostToolUse

post-edit.sh

Auto-formats PHP files after edit/write operations and updates IDE helper files for better autocompletion

Checks Performed

Auto-format PHP with Pint
Update IDE helper models

Overview

Auto-formats PHP files after edit/write operations and updates IDE helper files for better autocompletion. This hook runs on the PostToolUse event.

Configuration

Add this hook to your .claude/settings.json:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit",
        "command": "bash .claude-plugins/laravel-agent/hooks/scripts/post-edit.sh"
      }
    ]
  }
}