Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Modules

PHP Version Laravel Version License

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

About

Laravel modules that actually work with Inertia.js. Zero frontend registration, minimal boilerplate.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages