codder/laravel-modular is a module system for Laravel applications. It uses
Composer path repositories for autoloading, and Laravel package discovery for module initialization, and then provides minimal tooling to fill in any gaps. These modules use the existing
Laravel package system, and follow existing Laravel
conventions.
The documentation will be available in soon.
You can install the package via composer:
composer require codder/laravel-modularNext, let's create a module:
php artisan module:make foo Modular will scaffold up a new module for you:
modules/
composer.json
foo/
app/
config/
database/
public/
resources/
routes/
Your assets are stored in modules/MODULE/public after that run php artisan storage:link to create symbolic links from your assets to public folder.
To call the assets in your blade just call the helper module_asset('foo::bar.jpg')
This package supports Livewire >= 2!
This package is an open-sourced software licensed under the MIT license.