Laravel 12/13 + Filament 4 + MySQL 8.4 LTS
Production-ready administrative dashboard and enterprise back-office kit combining Laravel 12/13, Filament 4 admin panel, MySQL 8.4 LTS InnoDB with native full-text indexing, generated virtual columns, zero-trust BOLA authorization, and rootless container isolation.
docker compose up -d
# Laravel 12/13 + Filament 4 + MySQL 8.4 LTS — Claude Code Guidelines (CLAUDE.md)
# Auto-generated from rules/source/*.md by tools/transpiler.py. Do NOT edit directly.
## Quick Reference & Non-Negotiable Standards
### Framework Conventions and Standards
> Core architecture conventions for Laravel 12/13 and Filament 4.
# Framework Conventions and Standards
## 1. Strict Typing and Modern PHP 8.3+
- Always declare `declare(strict_types=1);` at the top of every PHP file.
- Use native constructor property promotion and typed properties.
- Return explicit types for all controller, service, and policy methods.
## 2. Directory Layout & Layer Separation
- **Models**: `app/Models/` (pure Eloquent entities with relationships and casts).
- **Filament Resources**: `app/Filament/Resources/` (declarative table and form schemas).
- **Policies**: `app/Policies/` (authorization logic, zero business mutations).
- **DTOs & Actions**: `app/Actions/` (isolated, testable domain operations).
## 3. Never-List
- Never use `env()` outside configuration files in `config/`.
| Design Token | Specification | Standard Enforcement |
|---|---|---|
| color.brand | #e85d26 (Orange status accent) | Status lights, active tabs, focus rings, primary CTA |
| color.surface.dark | #0A0A0B (Base) • #131316 (Raised) • #26262C (Hairline) | Dark-first showcase theme, hairline borders, no shadows |
| font.family.ui | Instrument Sans (14px base, tight scale) | Small and dense dashboard typography, zero AI slop |
| focus.ring | 2px #e85d26 outline, 2px offset | Universal high-visibility focus ring, WCAG 2.2 AA compliant |
Clone and Inspect
Clone repository, navigate to kits/laravel-filament-mysql, and start container services via docker compose.
Anchor AI Agent
Feed the Agent Bootstrap Prompt into Claude Code, Cursor, Codex, or Copilot. Agent consumes native rules and skills.
Verify Security Gates
Run automated CI evaluation. Security scanners assert zero vulnerabilities before merging features to production.
7-Part Installation & Setup Standard
1. Prerequisites Table
| Tool | Minimum Version | Check Command | Where to Get |
|---|---|---|---|
| Docker Engine | 24.0+ | docker --version | docker.com |
| Docker Compose | v2.20+ | docker compose version | Bundled with Docker |
| Git | 2.40+ | git --version | git-scm.com |
2. Quickstart Execution
git clone https://github.com/Umar-444/Techtalks-stack-kits.git cd Techtalks-stack-kits/kits/laravel-filament-mysql/starter cp .env.example .env docker compose up --build -d
3. Multi-Agent Rule Placement
4. Post-Install Verification Probes
Kit FAQ & Operational Details
How does MySQL 8.4 LTS full-text search integrate with Filament 4 table search? ↓
In Filament 4 tables, global search and column search can be overridden to utilize native MySQL MATCH(...) AGAINST(? IN BOOLEAN MODE) queries via an Eloquent scope, avoiding slow LIKE '%...%' table scans on large tables.
Why is MySQL 8.4 LTS InnoDB chosen over PostgreSQL for this blueprint? ↓
MySQL 8.4 LTS is the industry standard for traditional enterprise stacks and legacy migration targets, featuring refined InnoDB performance, histogram statistics, generated columns, and instant DDL operations.
How does the kit handle MySQL transaction deadlocks in Filament bulk actions? ↓
The starter includes Laravel DB::transaction() wrappers configured with automatic deadlock retries (up to 3 attempts) and explicit lockForUpdate() row locking on customer records during batch mutations.
What collation and character set are configured for MySQL 8.4? ↓
The database uses utf8mb4 character set with utf8mb4_0900_ai_ci collation, providing full Unicode 15 support, emoji handling, and accent-insensitive sorting.
How is Broken Object Level Authorization (BOLA) prevented in Filament resources? ↓
Every Filament resource binds to an explicit Laravel Policy class. Filament automatically queries ModelPolicy::viewAny(), view(), and update() before rendering forms, ensuring users cannot access records outside their tenant scope.
Can generated virtual columns be indexed in MySQL 8.4 with Filament? ↓
Yes. MySQL 8.4 allows indexing generated virtual or stored columns (e.g. JSON extraction expressions or concatenated full names), allowing Filament table filters to execute with zero runtime parsing overhead.
How does rootless containerization work with PHP 8.3 and MySQL 8.4? ↓
The Dockerfile defines a dedicated appuser with UID 10001:10001. All process execution, Composer commands, and storage directory ownership belong to this non-root user, eliminating root escalation vulnerabilities.
How does Filament 4 support multi-tenancy in this MySQL kit? ↓
Filament provides first-class tenancy configuration in AdminPanelProvider via tenant(Team::class), automatically scoping Eloquent queries to the active tenant ID in session.
What is the token consumption benchmark tier for this kit? ↓
The kit is benchmarked at Tier A (16,100 median build tokens) due to Filament declarative table/form schemas and concise Eloquent relationships.
How does the starter authenticate admin users? ↓
Authentication utilizes Laravel Fortify with Argon2id password hashing, session fixation protection, and optional FIDO2 WebAuthn / Passkeys authentication.
Are MySQL 8.4 strict SQL modes enforced? ↓
Yes. STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, and ERROR_FOR_DIVISION_BY_ZERO are explicitly enabled in config/database.php to prevent silent data truncation.
How do Pest architectural tests verify codebase hygiene? ↓
Pest ArchTest asserts that all controllers remain lean, models extend Eloquent, no raw dd() or dump() calls exist in production code, and all resources define policies.
How does the Redis service integrate with Filament in this kit? ↓
Redis 7.2 serves as the default cache store, queue driver, and session driver, supporting atomic locks and tag-based cache invalidation when Filament tables mutate.
What automated security scans run in CI for this kit? ↓
GitHub Actions executes Gitleaks for secret detection, Semgrep with OWASP Top 10 rules, and manifest schema validation before any production deployment.
Paste this exact prompt into Claude Code, Cursor, Copilot, or Antigravity to anchor the agent in the kit's rules and invariants:
You are building with the Laravel 12/13 + Filament 4 + MySQL 8.4 LTS kit. Adhere strictly to rules in CLAUDE.md / .cursor/rules, design tokens in DESIGN.md, and steps/agent-build-steps.md.