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
[NEW] NativePHP Mobile v4 with SuperNative: Mini-Course
5 lessons
18 min
Marketing for Developers in 2026
7 lessons
52 min
Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks
7 lessons
43 min read