
fuse-laravel
Expert Laravel 13 and PHP 8.3+ guidance covering 22 skills, from architecture to native vector search.
- version
- 1.2.15
- GitHub stars
- 36
What it does
- Adds the
laravel-expertagent and 21 domain skills, includinglaravel-eloquent,laravel-api,laravel-livewire,laravel-queues, andlaravel-testing - Covers Attributes-first model, job, and controller patterns, plus JSON:API resources, Laravel AI SDK integration, and pgvector search
- Enforces PHP 8.3+ strict types, typed constants, and
#[\Override]in generated code, following SOLID principles - Designed for Laravel teams building APIs and modular monoliths who want Claude to follow official 13.x conventions
Expert Laravel 13 + PHP 8.3+ with SOLID principles, first-class PHP Attributes, Laravel AI SDK, JSON:API Resources, native vector search (pgvector), Eloquent, Livewire, queues with routing, and comprehensive documentation
Add marketplace
/plugin marketplace add fusengine/agentsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install fuse-laravel@fusengine-pluginsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceFuseCore Modular Architecture
Agent Workflow (MANDATORY)
Before ANY implementation in FuseCore project, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing modules in
/FuseCore/ - fuse-ai-pilot:research-expert - Verify Laravel 13 patterns via Context7
- fuse-laravel:laravel-expert - Apply Laravel best practices
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
FuseCore is a Modular Monolith architecture for Laravel 13 with React 19 integration.
| Component | Purpose |
|---|---|
| Module | Self-contained feature (User, Dashboard, Blog) |
| Auto-Discovery | Automatic registration via module.json |
| Traits | HasModule for resource loading |
| Contracts | ModuleInterface, ReactModuleInterface |
| React Integration | Isolated React per module |
| i18n | Multi-language support (FR/EN/DE/IT/ES) |
Critical Rules
- All code in
/FuseCore/{Module}/- Never in/app/ - One module.json per module - Required for discovery
- ServiceProvider per module - Use
HasModuletrait - Files within
FUSE_SOLID_MAX_LINES- Split larger files (SOLID) - Interfaces in
/App/Contracts/- Never in components - Migrations in module -
/Database/Migrations/ - Routes in module -
/Routes/api.php
Architecture Overview
FuseCore/
├── Core/ # Infrastructure (priority 0)
│ ├── App/
│ │ ├── Contracts/ # ModuleInterface, ReactModuleInterface
│ │ ├── Services/ # ModuleDiscovery, RouteAggregator
│ │ ├── Traits/ # HasModule, HasModuleDatabase
│ │ └── Providers/ # FuseCoreServiceProvider
│ ├── Config/fusecore.php
│ └── module.json
│
├── User/ # Auth module
│ ├── App/Models/ # User.php, Profile.php
│ ├── Config/ # Module config (sanctum.php, etc.)
│ ├── Database/Migrations/
│ ├── Resources/React/ # Isolated React
│ ├── Routes/api.php
│ └── module.json # dependencies: []
│
└── {YourModule}/ # Your new module
├── App/
│ ├── Models/
│ ├── Http/Controllers/
│ ├── Services/
│ └── Providers/{YourModule}ServiceProvider.php
├── Config/ # Module-specific config
├── Database/Migrations/
├── Resources/React/
├── Routes/api.php
└── module.json # dependencies: ["User"]
Reference Guide
Architecture
| Topic | Reference | When to consult |
|---|---|---|
| Overview | architecture.md | Understanding FuseCore design |
| Module Structure | module-structure.md | Directory organization |
| Auto-Discovery | module-discovery.md | How modules are loaded |
| module.json | module-json.md | Module configuration |
Implementation
| Topic | Reference | When to consult |
|---|---|---|
| Contracts | contracts.md | ModuleInterface, ReactModuleInterface |
| Traits | traits.md | HasModule, HasModuleDatabase |
| ServiceProvider | service-provider.md | Module registration |
| Routes | routes.md | API routing |
Resources
| Topic | Reference | When to consult |
|---|---|---|
| React Integration | react-integration.md | Frontend per module |
| Migrations | migrations.md | Database per module |
| i18n | i18n.md | Multi-language setup |
Guides
| Topic | Reference | When to consult |
|---|---|---|
| Creating Module | creating-module.md | Step-by-step guide |
Templates (Code Examples)
| Template | Purpose |
|---|---|
| module.json.md | Module configuration |
| ServiceProvider.php.md | Module service provider |
| Controller.php.md | API controller |
| Model.php.md | Eloquent model |
| Migration.php.md | Database migration |
| ReactStructure.md | React module structure |
| ApiRoutes.php.md | API routes file |
| Resource.php.md | API Resource |
| Request.php.md | Form Request |
| Service.php.md | Business logic service |
Quick Reference
Create New Module
# 1. Create directory structure
mkdir -p FuseCore/{ModuleName}/{App/{Models,Http/Controllers,Services,Providers},Database/Migrations,Resources/React,Routes}
# 2. Create module.json
# 3. Create ServiceProvider with HasModule trait
# 4. Create routes/api.php
# 5. Run: php artisan fusecore:cache-clear
module.json
{
"name": "ModuleName",
"version": "1.0.0",
"enabled": true,
"isCore": false,
"dependencies": ["User"]
}
ServiceProvider
class ModuleNameServiceProvider extends ServiceProvider
{
use HasModule;
public function boot(): void
{
$this->loadModuleMigrations();
}
}
Routes
Route::middleware(['api', 'auth:sanctum'])->group(function () {
Route::apiResource('items', ItemController::class);
});
Module Checklist
-
/FuseCore/{Module}/directory created -
module.jsonwith name, version, dependencies -
{Module}ServiceProvider.phpwithHasModuletrait - Routes in
/Routes/api.php - Migrations in
/Database/Migrations/ - Models in
/App/Models/ - Controllers in
/App/Http/Controllers/ - React in
/Resources/React/(if needed) - i18n in
/Resources/React/i18n/locales/
SOLID Compliance
| Rule | FuseCore Implementation |
|---|---|
| Single Responsibility | One module = one feature |
| Open/Closed | Extend via ModuleInterface |
| Liskov Substitution | ReactModuleInterface extends ModuleInterface |
| Interface Segregation | Separate contracts |
| Dependency Inversion | Inject via ServiceProvider |
File limits: All files within FUSE_SOLID_MAX_LINES. Split well before it.
Naming Conventions
| Type | Convention | Example |
|---|---|---|
| Module folder | PascalCase | BlogPost |
| module.json name | PascalCase | "name": "BlogPost" |
| ServiceProvider | {Module}ServiceProvider | BlogPostServiceProvider |
| Controller | {Resource}Controller | PostController |
| Model | Singular | Post |
| Migration | create_{table}_table | create_posts_table |
| Routes file | api.php | Always api.php |
Laravel 13 Notes
Stack FuseCore L13
- Laravel 13 (stable 13.40) + PHP 8.3 minimum
- React 19 + TypeScript 7 (module frontend side) — TS 7.0 has no compiler API: typescript-eslint (peer
typescript <6.1.0) requires the alias"typescript": "npm:@typescript/typescript6@^6.0.2"+"@typescript/native": "npm:typescript@^7.0.2"(npx tsc= 7.0) - Inertia 3 (
inertiajs/inertia-laravel^3.0) for the React ↔ modules bridge
Module ServiceProvider and L13
Bindings in register(), observers/hooks in boot(). L13 reminder: instantiating a model during its own boot (new static() inside the model's boot() or a trait's boot*()) throws a LogicException.
public function register(): void
{
$this->app->bind(PostRepositoryContract::class, EloquentPostRepository::class);
}
public function boot(): void
{
Post::observe(PostObserver::class);
}
Per-module cache prefixes
L13 uses hyphens by default. For FuseCore, configuring the prefix per module via module.json remains compatible:
{
"name": "BlogPost",
"cache_prefix": "blogpost-"
}
Best Practices
DO
- One module = one complete
FuseCore/<Module>/folder (Contracts/, Services/, Http/, Models/) - Declare every inter-module dependency via Contracts (never concrete classes)
- Use
final readonly classfor module DTOs (PHP 8.3+) - Move all Model logic from
register()toboot() - Prefer Inertia 3 + React 19 for modules with a UI
DON'T
- Import a class from another module without going through its Contract
- Put business logic in Controllers (extract it into a module Service)
- Instantiate a model during its own boot (
new static()insideboot()→ LogicException in L13) - Exceed the hook ceiling
FUSE_SOLID_MAX_LINESper file (split into sub-modules or Services) - Share migrations between modules (each module owns its tables)
Readme
Laravel Expert Plugin
Expert Laravel 13 development plugin for Claude Code with comprehensive documentation and best practices.
Features
- 22 specialized skills covering all Laravel 13 domains (Attributes, AI SDK, JSON:API, vector search, Eloquent, queues, auth, billing, etc.)
- Documentation based on official Laravel 13.x docs
- PHP Attributes-first patterns with legacy property migration guides
- PHP 8.3+ with strict types, typed constants,
#[\Override]
Skills
| Skill | Description |
|---|---|
laravel-architecture | Services, repositories, actions, clean code patterns |
laravel-eloquent | ORM, relationships, scopes, casts, query optimization |
laravel-api | RESTful APIs, resources, rate limiting, versioning |
laravel-auth | Sanctum, Passport, policies, gates, social login |
laravel-testing | Pest, PHPUnit, feature tests, factories, mocking |
laravel-queues | Jobs, workers, batches, chains, failure handling |
laravel-livewire | Livewire 4, Volt, reactive components |
laravel-blade | Templates, components, slots, layouts, directives |
laravel-migrations | Schema builder, indexes, foreign keys, seeders |
laravel-billing | Stripe Cashier, Paddle, subscriptions, invoices |
Usage
# Install the plugin
claude plugins add fusengine-plugins/laravel-expert
# Use the agent
claude --agent laravel-expert "Create a new API endpoint for users"
Trigger Keywords
The agent activates automatically when you mention:
- Laravel, Eloquent, Blade, Livewire
- API development, authentication, authorization
- Database migrations, queues, testing
- PHP artisan commands
Requirements
- Laravel 13.x
- PHP 8.3+
- Composer
License
MIT
Details
- Marketplace
- fusengine/agents
- Source
- plugins/laravel-expert
- Author
- Fusengine
- Category
- Development
- License
- MIT
- Keywords
- laravel, laravel-13, php, php-8.3, eloquent, livewire, blade, solid, attributes, ai-sdk, jsonapi, vector-search, pgvector
- Listed since
- Apr 7, 2026
More from fusengine/agents
All 26- fuse-lessonsv1.0.10
- fuse-motionv1.0.3
- fuse-nextjsv1.1.31
- fuse-phpv1.0.12
- fuse-prompt-engineerv1.1.15
- fuse-reactv1.0.28
- fuse-rustv1.0.12
- fuse-securityv1.0.24
- fuse-seov1.0.19
- fuse-shadcn-uiv1.0.23
- fuse-solidv1.0.23
- fuse-statuslinev1.0.16
- fuse-swift-apple-expertv1.2.0
- fuse-tailwindcssv1.1.15
- fuse-tanstack-startv1.0.12
- fuse-typescriptv1.0.12
- fuse-ai-pilotv1.2.56
- fuse-astrov1.0.18
- fuse-cartographerv1.0.18
- fuse-changelogv1.0.17
- fuse-commit-prov1.2.33
- fuse-designv2.3.0
- fuse-devopsv1.0.1
- fuse-gov1.0.11
Similar to fuse-laravel
More Backend & APIs
fuse-phpPluginfusengine/agents36 starsExpert modern PHP 8.5/8.4 for non-Laravel projects — libraries, standalone Symfony components, Slim, API-first apps, and CLI tools, with PER Coding Style 3.1, P
laravelSkillmindrally/skills870 installsExpert guidance for Laravel PHP work covering MVC structure, Eloquent, validation, testing, and performance.
laravel-specialistSkilljeffallan/claude-skills24.1K installsLaravel 10+ specialist covering Eloquent, Sanctum, Horizon, API resources, Livewire, and Pest/PHPUnit testing.
fuse-rustPluginfusengine/agents36 starsExpert Rust 1.98+ (2024 edition) — ownership, error handling, async/tokio, axum backends, cargo tooling, with SOLID principles
laravel-lspPluginlaravel/agent-skills740 starsLaravel language server for PHP code intelligence
laravel-boostPluginanthropics/claude-plugins-official47.9K starsLaravel development toolkit MCP server. Provides intelligent assistance for Laravel applications including Artisan commands, Eloquent queries, routing, migratio