Laravel 5.x - HMVC Generator for your Laravel Project
MIT License
HVMC is a more-strongly design pattern based on MVC (Model-View-Controller). You got many advantages by using this pattern, especially if your project is very big.
Key advantages (M.O.R.E):
Find out more here: HVMC - Wikipedia
Install using Composer:
composer require sethsandaru/laravel-hmvc-generator
Update using Composer:
composer update sethsandaru/laravel-hmvc-generator
HMVCServiceProvider
into the providers
in config/app.php
SethPhat\HMVC\HMVCServiceProviderg
For the first time, please run this command:
php artisan make:hmvc
If you see the successful message, you're done!
Use this command to create a new module:
php artisan hmvc:create_module <Module_Name>
A new module will be created inside the app/Modules
folder.
To add your own configuration file and use the config
function, please open config/hmvc.php
You will see this:
<?php
//...
return [
'config_files' => [
// your config file here
// 'administration' => 'Modules/Administration/Configs/administration.php'
]
];
Following the instruction above. You must add a right path to your config file, no full path, just the path in app
folder.
Example:
<?php
//...
return [
'config_files' => [
'administration' => 'Modules/Administration/Configs/administration.php'
]
];
I will get the config out like this:
<?php
//...
config('administration.some_key_here');
If you really like this project & want to contribute a little for the development. You can buy me a coffee. Thank you very much for your supporting ♥.
Copyright © 2018 by Seth Phat aka Phat Tran Minh!