synetro / laravel-modules
Modern Laravel module system with first-class Inertia.js + React support
No longer found in upstream repository
Requires
- php: ^8.3
- laravel/framework: ^12.0|^13.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^9.0|^10.0
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-08-29 14:50:01 UTC
README
Modern Laravel module system with first-class Inertia.js + React support.
No manual app.tsx edits. No manually maintained page registries. No boilerplate.
composer require synetro/laravel-modules php artisan module:make Billing --full --inertia
Then immediately:
return Inertia::render('Billing::Dashboard');
That's it.
Why?
Existing Laravel module packages force you into Blade-centric workflows, require manual frontend registries, and create more problems than they solve.
This package was built from scratch to work natively with:
- Laravel 12+
- Inertia.js
- React
- Vite
- TypeScript
Modules should feel like a first-class part of your application — not an afterthought.
Installation
composer require synetro/laravel-modules
Publish the config (optional):
php artisan vendor:publish --tag=modules-config
Quick Start
php artisan module:make Blog --full --inertia php artisan module:enable Blog
Visit /blog to see your new module.
Features
- Zero-config module discovery
- Automatic Inertia page resolution
- Automatic Vite integration
- Module lifecycle (enable/disable/remove)
- Dependency management with validation
- Artisan generators for controllers, models, pages, components, and more
- Optional Fuse integration
- Isolated module testing
- Route registration per module
- Module-specific config, translations, and views
- Doctor command for diagnostics
- Production-ready manifest caching
Documentation
See the docs/ directory for full documentation.
License
MIT