Simple Laravel Module Generator.
This Package: Automatically creates a module or part in a Laravel Modular Pattern.
What things you need to install the software and how to install them
"php": "^7.2.0",
"illuminate/console": "^5.3.0",
"illuminate/support": "^5.3.0",
"laravel/laravel" : "^5.6.*"
""
A step by step series of examples that tell you how to get a development env running
Step 1 : require composer package
composer require tanerincode/modulity
Step 2 : if this package not working automatically add provider in config/app.php
TanerInCode\Modulity\Providers\ModulityServiceProvider::class,
Step 3 : Publish config file and select modulity.config
php artisan vendor:publish
Step 4 : Update Modules Namespace, modulity.php
or .env
file
'name_space' => env("MODULE_GENERATOR_NAMESPACE", 'TanerInCode')
OR
MODULE_GENERATOR_NAMESPACE=TanerInCode
PS: Do not touch src_url
.
Last Step : Replace the Psr-4 field in the Composer.json file with the namespace of your choice.
"autoload": {
...
"psr-4": {
...
"TanerInCode\\" : "app/Modules"
}
- Laravel - The laravel framework
- Taner Tombas - TanerInCode
This project is licensed under the MIT License - see the LICENSE.md file for details