Lc:check Foreign Keys
Detect broken, orphaned, or missing foreign key constraints in Laravel migrations and models.
Lc:analyze Model
Deep analysis of a Laravel Eloquent model - relationships, scopes, casts, fillable, observers, keepers, actions.
Lc:spatie Permissions Audit
Audit spatie/laravel-permission usage - permissions used in code but undefined, defined but unused, unprotected routes, guard mismatches, and cache pitfalls.
Lc:migration Fresh Test
Run migrate:fresh in Docker and report errors with fix suggestions.
Lc:slow Queries
Detect queries without indexes, queries in loops, and unbounded selects.
Lc:find N Plus One
Detect N+1 query problems in Blade views, Livewire components, and controllers.
Lc:boost Inspect
Runtime-verified Laravel inspection using the Laravel Boost MCP server (Tinker, Database Query/Schema, Last Error) instead of static grep. Falls back to Docker/Tinker if Boost is not installed.
Lc:livewire Optimize
Detect and fix Livewire performance issues - heavy renders, excessive queries, unnecessary reactivity.
Lc:livewire Audit
Detect common Livewire/Volt problems - unserializable properties, missing wire:key, orphaned events, re-render issues.
Lc:security Audit
Detect common Laravel security vulnerabilities - SQL injection, XSS, mass assignment, exposed secrets.
Lc:deploy Checklist
Verify the project is production-ready with a comprehensive checklist.
Lc:generate Test
Generate feature/unit tests for a model, controller, action, or component by analyzing its code.
Lc:generate Scraper
Create a Larascraper scraper for a target website, chaining browser actions (click, type, wait, scroll), conditional flow (when/repeatUntil), captcha solving, and file/PDF downloads.
Lc:api Docs
Generate API documentation from routes, controllers, and form requests.
Lc:unused Columns
Detect database columns that are never referenced in the codebase.
Lc:model Diagram
Generate an ER diagram of Eloquent models in Mermaid format.
Lc:test Coverage
Analyze which models, controllers, and actions have tests and which don't.
Lc:orphaned Records
Find orphaned database records where foreign key parent records don't exist.
Lc:generate Modal
Generate a modal component using the project's x-modal pattern with Livewire integration.
Lc:dead Code
Find unused classes, methods, routes, views, and imports.
Lc:blade Audit
Detect hardcoded text without @text(), duplicate CSS classes, unused Blade components, and accessibility issues.
Lc:generate Spatie Permissions
Scaffold spatie/laravel-permission setup - add the HasRoles trait to a model and generate a roles & permissions seeder.
Lc:analyze Error
Paste a Laravel stacktrace and get root cause analysis with suggested fix.
Lc:consolidate Migrations
Analyze and consolidate fragmented Laravel migration files. Groups by table, detects dependencies, proposes safe merges.
Lc:cache Opportunities
Detect repeated queries and computations that should be cached.
Lc:generate Crud
Generate complete CRUD scaffolding - migration, model, controller, routes, views (index + create/edit modal).
Lc:generate Action
Create a Laractions action class with proper boilerplate.
Lc:extract Action
Extract business logic from a controller or Livewire component method into a Laractions Action class.
Lc:generate Table
Generate a table component with filters, sorting, infinite scroll using the project's TableComponent base.
Lc:docker Check
Verify docker-compose.yml, Dockerfile, and .env are properly synchronized.
Lc:volt Component
Generate a Livewire Volt single-file component following project conventions.