Course
Description
internachi/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.
Create a module
Next, let's create a module:
php artisan make:module my-module
Modular will scaffold up a new module for you:
app-modules/ my-module/ composer.json src/ tests/ routes/ resources/ database/
It will also add two new entries to your app's composer.json file. The first entry registers
./app-modules/my-module/ as a path repository,
and the second requires modules/my-module:* (like any other Composer dependency).
Modular will then remind you to perform a Composer update, so let's do that now:
composer update modules/my-module
Related Content on Laravel Daily
Video
Course
Laravel Modules and DDD
Video
Recent Courses on Laravel Daily
Laravel 13 Starter Kit Teams and Customizations
10 lessons
33 min
Testing in Laravel 13 For Beginners
26 lessons
1 h 41 min read
How to Build Laravel 13 API From Scratch
30 lessons
1 h 23 min