Star
READY TO SHIP v1.0.0 • 6 Native Agent Dialects

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.

{'name': 'PHP', 'version': '^8.3 || ^8.4', 'registry': 'packagist'} {'name': 'Laravel', 'version': '^11.0 || ^12.0 || ^13.0', 'registry': 'packagist'} {'engine': 'MySQL', 'version': '>= 8.4', 'features': ['InnoDB Engine', 'Full-Text Search (MATCH AGAINST)', 'Generated Virtual Columns', 'Strict SQL Modes', 'utf8mb4_0900_ai_ci Collation']}
$ git clone https://github.com/Umar-444/Techtalks-stack-kits.git
01 / STARTER & ARCHITECTURE
docker compose up -d
File / Subsystem Architecture Role Status
01 docker-compose.yml
Rootless isolated application & database runtime PRE-WIRED
02 starter/app/
Model layer, authorization policies, admin resources RBAC ENFORCED
03 starter/tests/
Pest / PHPUnit architectural and feature test suite AUTOMATED
04 .env.example
Zero plaintext secrets, strict dummy placeholders GITLEAKS READY
02 / NATIVE RULES (6 DIALECTS)
Source: kits/laravel-filament-mysql/CLAUDE.md • Token footprint: ~350 tokens
# 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/`.
03 / SKILLS & WORKFLOWS
01filament-resource
SANDBOXED
02first-feature
SANDBOXED
03install-and-verify
SANDBOXED
04laravel-filament-mysql-core
SANDBOXED
05laravel-policy
SANDBOXED
06mysql-innodb-optimization
SANDBOXED
04 / DESIGN TOKENS & COMPONENTS
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
05 / SECURITY SCANS & CI GATES
01 Gitleaks Secret Scanning
Scans commits, branches, and PRs for API keys & tokens ✓ ACTIVE
02 Semgrep AST Security Rules
Detects SQLi, CSRF omission, insecure deserialization ✓ ACTIVE
03 OWASP Automated Test Suite
Functional tests validating session fixation & XSS filtering ✓ ACTIVE
04 Static Type Checking
PHPStan Level 8 / Strict TypeScript compilation ✓ ACTIVE
06 / STEP-BY-STEP PROCEDURE
01

Clone and Inspect

Clone repository, navigate to kits/laravel-filament-mysql, and start container services via docker compose.

02

Anchor AI Agent

Feed the Agent Bootstrap Prompt into Claude Code, Cursor, Codex, or Copilot. Agent consumes native rules and skills.

03

Verify Security Gates

Run automated CI evaluation. Security scanners assert zero vulnerabilities before merging features to production.

SECTION 3 • INSTALLATION GUIDE

7-Part Installation & Setup Standard

✓ VERIFIED INSTALL

1. Prerequisites Table

Tool Minimum Version Check Command Where to Get
Docker Engine24.0+docker --versiondocker.com
Docker Composev2.20+docker compose versionBundled with Docker
Git2.40+git --versiongit-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

Claude Code
CLAUDE.md
Cursor
.cursor/rules/*.mdc
Codex
CODEX.md / AGENTS.md
Copilot
copilot-instructions.md
Cline
.clinerules
Antigravity
.agents/rules/*.md

4. Post-Install Verification Probes

curl -s http://localhost:8000/healthz ✓ HTTP 200 OK
docker compose ps ✓ ALL SERVICES UP
SECTION 4 • FREQUENTLY ASKED QUESTIONS

Kit FAQ & Operational Details

14 QUESTIONS
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.

eval-transcript • laravel-filament-mysql
GATES PASSED
$ aautomated test suite --kit laravel-filament-mysql
✓ 01-manifest-integrity ............. PASS
✓ 02-agent-dialects .................. PASS (6/6 compiled)
✓ 03-skills-sandbox .................. PASS (Sandboxed tools)
✓ 04-owasp-scanners .................. PASS (0 vulnerabilities)
✓ 05-runtime-smoke ................... PASS (HTTP 200 OK)
Ready for immediate agent execution with zero configuration.
AGENT BOOTSTRAP PROMPT

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.