# {{PROJECT_NAME}} - Laravel

> Erstellt: {{GENERATION_DATE}} | Claude Craft v{{VERSION}}

## Was (Stack & Struktur)

**Stack**: Laravel {{LARAVEL_VERSION}} + PHP {{PHP_VERSION}}
**Datenbank**: {{DATABASE_TYPE}}
**Architektur**: {{ARCHITECTURE_PATTERN}}

### Projektstruktur
```
app/
├── Domain/           # Kern-Geschaeftslogik
│   ├── Models/       # Eloquent Models
│   └── Services/     # Domain Services
├── Application/      # Use Cases, Actions, DTOs
│   ├── Actions/      # Single Action Classes
│   └── DTOs/         # Data Transfer Objects
├── Infrastructure/   # Externe Services, Repositories
└── Http/             # Controller, Requests, Resources
    ├── Controllers/
    ├── Requests/     # Form Requests
    └── Resources/    # API Resources
```

## Warum (Zweck & Organisation)

### Architektur: {{ARCHITECTURE_PATTERN}}
- **Controller**: Duenn, delegiert an Actions
- **Validation**: Immer via Form Requests
- **Responses**: Immer via API Resources
- **Authorization**: Via Policies

Siehe `rules/02-architecture.md` fuer Muster.

### Kritische Regeln
| Regel | Beschreibung |
|-------|--------------|
| PHP | 8.3+ mit strict types |
| Style | Laravel Pint (PSR-12) |
| Analysis | PHPStan Level 8 |
| Tests | 80% Coverage (Pest) |

## Wie (Befehle & Workflows)

### Entwicklungsbefehle
```bash
php artisan serve              # Dev Server
php artisan queue:work         # Queue Worker
php artisan migrate            # Migrationen
php artisan migrate:fresh --seed  # DB Reset
```

### Qualitaets-Pipeline
```bash
./vendor/bin/pint              # Code Format
./vendor/bin/phpstan analyse   # Statische Analyse
php artisan test               # Tests
php artisan test --coverage    # Mit Coverage
```

### Entwicklungs-Workflow
1. **Analysieren** - `rules/01-workflow-analysis.md` lesen
2. **TDD** - Test schreiben, implementieren, refaktorisieren
3. **Qualitaet** - Pint + PHPStan + Tests
4. **Commit** - Conventional Commits Format

## Referenzen
| Kontext | Datei |
|---------|-------|
| Vor Aenderungen | `rules/01-workflow-analysis.md` |
| Architektur | `rules/02-architecture.md` |
| Code Standards | `rules/03-coding-standards.md` |
| Testing | `rules/07-testing.md` |
| Sicherheit | `rules/11-security.md` |

<!-- PROJECT-SPECIFIC-START -->
## Projektspezifika
<!-- Projektspezifische Konfiguration hier hinzufuegen -->
<!-- PROJECT-SPECIFIC-END -->
