
LaraClaude
A comprehensive Laravel toolkit plugin for Claude Code. 31 specialized skills to analyze, debug, scaffold, and optimize Laravel applications directly from your terminal.
Installation
Requires Claude Code installed.
Recommended (marketplace): add the marketplace once, then install. You get version tracking and automatic updates with /plugin marketplace update.
/plugin marketplace add edulazaro/laraclaude
/plugin install laraclaude@edulazaro
Quick install (direct from GitHub):
/plugin install github:edulazaro/laraclaude
Skills
Database & Migrations
/lc:consolidate-migrations
Analyze and consolidate fragmented migration files. When your project accumulates hundreds of small migrations (add column, modify column, rename...), this skill merges them into clean, optimized files.
/lc:consolidate-migrations analyze # Show consolidation report
/lc:consolidate-migrations properties # Consolidate a specific table
/lc:consolidate-migrations all # Consolidate all safe tables
What it does:
- Groups migrations by table
- Detects foreign key dependencies
- Classifies each as SAFE / CAUTION / DO NOT MERGE
- Merges ADD COLUMN into original CREATE
- Preserves data migrations
- Validates syntax after consolidation
/lc:check-foreign-keys
Detect broken, orphaned, or missing foreign key constraints across your migrations and models.
/lc:check-foreign-keys # Check all tables
/lc:check-foreign-keys properties # Check specific table
Detects:
- FK in migration but no relationship in model
- Relationship in model but no FK in migration
- FK referencing non-existent tables or columns
- Risky
onDelete actions
/lc:migration-fresh-test
Run migrate:fresh in your Docker container and get detailed error analysis with fix suggestions.
/lc:migration-fresh-test # Run migrate:fresh
/lc:migration-fresh-test --seed # With seeders
Models & Queries
/lc:analyze-model
Deep analysis of any Eloquent model: relationships, scopes, casts, fillable, observers, keepers, actions, and potential issues.
/lc:analyze-model Property # Analyze specific model
/lc:analyze-model # List all models
Shows:
- All relationships with types and related models
- Scopes, accessors, mutators
- Casts, fillable, guarded
- Observers, Larakeep keepers, Laractions actions
- Potential issues (missing fillable, N+1 risks)
/lc:find-n-plus-one
Detect N+1 query problems in Blade views, Livewire components, and controllers.
/lc:find-n-plus-one # Scan entire project
/lc:find-n-plus-one resources/views/ # Scan specific directory
Detects:
$model->relationship inside @foreach without eager loading
- Missing
with() in Livewire computed properties
- Suggests the exact
with() statement needed
/lc:orphaned-records
Find database records where the parent (foreign key) no longer exists.
/lc:orphaned-records # Check all tables
/lc:orphaned-records operations # Check specific table
/lc:unused-columns
Detect database columns that are never referenced anywhere in the codebase.
/lc:unused-columns # Check all tables
/lc:unused-columns properties # Check specific table
/lc:boost-inspect
Runtime-verified inspection using the Laravel Boost MCP server. Instead of static grep, it reasons about the live app: real schema, real row counts, loaded models, and recent errors. Falls back to Docker + tinker if Boost is not installed.
/lc:boost-inspect # Full runtime report
/lc:boost-inspect models # Verify model relationships at runtime
/lc:boost-inspect schema # Diff live schema vs migrations
/lc:boost-inspect errors # Analyze the last runtime errors
/lc:boost-inspect Property # Focus on one model/table
What it does:
- Uses Boost's MCP tools (Database Schema, Database Query, Tinker, Last Error) when available
- Confirms orphaned FKs against actual data (not guessed from migrations)
- Detects schema drift between the running database and
database/migrations/
- Pairs with Boost rather than replacing it, then routes you to the matching fix skill
Security & Performance
/lc:security-audit
Detect common Laravel security vulnerabilities: SQL injection, XSS, mass assignment, exposed secrets.