jumbodroid / laramod
Laramod
v1.0.0
2021-07-09 20:20 UTC
Requires
- php: >=7.3
- ext-json: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- laravel/framework: ^8.49
- mockery/mockery: ^1.4
- orchestra/testbench: ^6.19
- phpstan/phpstan: ^0.12.91
- phpunit/phpunit: ^9.3.3
- spatie/phpunit-snapshot-assertions: ^4.2
This package is auto-updated.
Last update: 2024-10-23 23:55:43 UTC
README
Install
To install through Composer, add a vcs repository pointing to this repo and run the following command:
composer require jumbodroid/laramod
The package will automatically register a service provider and alias.
Optionally, publish the package's configuration file by running:
php artisan vendor:publish --provider="Jumbodroid\Laramod\LaravelModulesServiceProvider"
Autoloading
By default, the module classes are not loaded automatically. You can autoload your modules using psr-4
. For example:
{ "autoload": { "psr-4": { "App\\": "app/", "Modules\\": "Modules/" } } }
Tip: don't forget to run composer dump-autoload
afterwards.