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] Practical Laravel Security: Packages, Secrets, Supply-Chain Attacks
7 lessons
43 min read
Next.js Basics for Laravel Developers
11 lessons
58 min
Testing in Laravel 13 For Beginners
26 lessons
1 h 41 min read