claude-craft / laravel
CLAUDE.md108 starsChanged 6 days agoMITView on GitHub
Version : Laravel 13.x (série 13 lancée le 17 mars 2026 — dernière version vérifiée : 13.42.0 au 2026-11-11) PHP : 8.3+ (8.5 recommandé) Sources : https://laravel.com/docs/13.x/releases Laravel 13 recommande Clean Architecture avec le pattern Actions :
In this repository61 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .claude/references/angular/CLAUDE.mdCLAUDE.md
- .claude/references/flutter/CLAUDE.mdCLAUDE.md
- .claude/references/paperclip/CLAUDE.mdCLAUDE.md
- .claude/references/reactnative/CLAUDE.mdCLAUDE.md
- .claude/references/svelte/CLAUDE.mdCLAUDE.md
- .claude/references/symfony/CLAUDE.mdCLAUDE.md
- .claude/references/vite/CLAUDE.mdCLAUDE.md
- .claude/references/vuejs/CLAUDE.mdCLAUDE.md
- aggregatesSkill
- api-gatewaySkill
- architectSkill
- architecture-clean-dddSkill
- architectureSkill
- asyncSkill
- atomic-tasksSkill
- coding-standardsSkill
- cqrsSkill
- ddd-patternsSkill
- debug-methodicalSkill
- design-md-conventionSkill
- docker-hadolintSkill
- doctrine-extensionsSkill
- documentationSkill
- domain-eventsSkill
- dynamic-workflowsSkill
- ecosystem-toolsSkill
- edge-computingSkill
- event-drivenSkill
- git-workflowSkill
- graphqlSkill
- i18nSkill
- kiss-dry-yagniSkill
- monorepoSkill
- multitenantSkill
- navigationSkill
- observabilitySkill
- parallel-worktreesSkill
- performanceSkill
- quality-toolsSkill
- remotionSkill
- security-flutterSkill
- security-reactnativeSkill
- security-reactSkill
- securitySkill
- security-symfonySkill
- socratic-brainstormSkill
- solid-principlesSkill
- state-managementSkill
- sub-agents-patternsSkill
- testing-flutterSkill
- testing-pythonSkill
- testing-reactnativeSkill
- testing-reactSkill
- testingSkill
- testing-symfonySkill
- toolingSkill
- value-objectsSkill
- wasmSkill
- The first 60 shown.
The file
Files
Laravel 13 — Framework Reference
Version : Laravel 13.x (série 13 lancée le 17 mars 2026 — dernière version vérifiée : 13.42.0 au 2026-11-11) PHP : 8.3+ (8.5 recommandé) Sources : https://laravel.com/docs/13.x/releases
Table des Matières
| Fichier | Sujet |
@architecture.md | Clean Architecture, Actions, DTOs, Repositories |
@coding-standards.md | PHP 8.3+ (8.5 recommandé), Conventions Laravel, Enums, Match |
@testing.md | Pest 5 + Mutation Testing, Arch Presets |
@quality-tools.md | PHPStan 2.0 Level 10, Pint, Rector |
@security.md | OWASP Top 10, Sanctum, Passkey Auth |
@project-context.md | Template contexte projet |
@tooling.md | Artisan, Docker, CI/CD, LSP |
@laravel13-features.md | AI SDK, Vector Search, Passkey, Team Management |
Nouveautés Laravel 13
AI SDK Stable
- Package
laravel/ai(composer require laravel/ai) : API unifiée OpenAI, Anthropic, Gemini + driveropenai-compatible - Outils (Tools), Agents, Embeddings, Streaming
- https://laravel.com/docs/13.x/ai-sdk
Vector Search Natif
- Support pgvector pour PostgreSQL
- Recherche sémantique, RAG (Retrieval-Augmented Generation)
- https://laravel.com/docs/13.x/vector-search
Passkey Authentication
- WebAuthn intégré dans Breeze, Jetstream, Fortify
- Authentification sans mot de passe
- https://laravel.com/docs/13.x/passkey
Pest 5 Mutation Testing
- Mutation Testing natif pour garantir la qualité des tests
- https://pestphp.com/docs/mutation-testing
Arch Presets
- Tests d'architecture préconfigurés pour Laravel
- https://laravel.com/docs/13.x/testing#architecture-presets
Team Management Amélioré
- Rôles et permissions plus granulaires dans Jetstream
- https://laravel.com/docs/13.x/teams
Stack Technologique
| Composant | Version | Description |
| PHP | 8.3+ (8.5 recommandé) | Constructor promotion, readonly, enums, match |
| Laravel | 13.x | Framework fullstack avec AI SDK |
| Pest | 5.x (PHP 8.4+) | Tests + Mutation Testing |
| PHPStan | 2.0 Level 10 | Analyse statique stricte |
| Pint | 1.x | Formatage PSR-12 / Laravel |
| Sanctum | 4.x | API Token Authentication + Passkey |
| PostgreSQL | 16+ | Base de données avec pgvector |
| Redis | 7+ | Cache et Queue |
Architecture
Laravel 13 recommande Clean Architecture avec le pattern Actions :
app/
├── Domain/ # Logique métier pure (Models, ValueObjects, Events, Contracts)
├── Application/ # Use cases (Actions, DTOs, Handlers)
├── Infrastructure/ # Implémentations externes (Repositories, Services)
└── Http/ # Présentation (Controllers, Requests, Resources)Principes
- Actions : une Action = une opération métier
- DTOs readonly : typage strict PHP 8.3+
- Form Requests : validation externalisée
- API Resources : transformation des réponses
- Policies : autorisation déclarative
- Events/Listeners : découplage des effets secondaires
Patterns Essentiels
1. Action Pattern
final readonly class CreateUser
{
public function __construct(
private readonly UserRepository $users,
) {}
public function handle(CreateUserDTO $dto): User
{
$user = $this->users->create($dto);
event(new UserRegistered($user));
return $user;
}
}2. DTO Pattern
final readonly class CreateUserDTO
{
public function __construct(
public string $name,
public string $email,
) {}
}3. Repository Pattern
interface UserRepositoryInterface
{
public function find(int $id): ?User;
public function create(CreateUserDTO $dto): User;
}4. AI SDK Pattern (Laravel 13)
use function Laravel\Ai\{agent};
$response = agent(instructions: 'You are a helpful assistant.')
->prompt('Hello');
echo (string) $response;5. Vector Search Pattern (Laravel 13)
$relevantDocs = Document::query()
->whereVectorSimilarTo('embedding', $question, minSimilarity: 0.4)
->limit(3)
->get();Tests
Pest 5 avec Mutation Testing
# Tests classiques
php artisan test --coverage --min=80
# Mutation Testing (Pest 5)
./vendor/bin/pest --mutate --min=80Architecture Tests avec Presets
use Pest\Arch\Preset;
uses(Preset::laravel());
arch('Actions are final')->expect('App\Actions')->toBeFinal();Qualité Code
PHPStan 2.0 Level 10
parameters:
level: 10
paths: [app, database, tests]Pint (Formatage)
./vendor/bin/pint
./vendor/bin/pint --testSécurité
OWASP Top 10
- Sanctum pour API tokens
- Passkey pour authentification sans mot de passe (Laravel 13)
- Policies pour autorisation
- Form Requests pour validation
- Rate limiting, CSRF, XSS, SQL injection protection
Passkey Auth (Laravel 13)
// config/fortify.php
'features' => [
Features::passkeys(), // Nouveauté Laravel 13
],Checklist Laravel 13
- Clean Architecture (Domain/Application/Infrastructure/Http)
- Actions pour logique métier
- DTOs readonly PHP 8.3+
- Form Requests + Policies
- PHPStan Level 10 (PHPStan 2.0)
- Pest 5 + Mutation Testing >= 80%
- Arch Presets Laravel appliqués
- AI SDK configuré (si LLM)
- Vector Search / pgvector (si RAG)
- Passkey Authentication (si auth sans mot de passe)
- Team Management (si Jetstream)
Version : 1.0 Dernière mise à jour : 2026-04 Auteur : The Bearded CTO
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

