Download the PHP package tienhm7/laravel-hmvc-generator without Composer
On this page you can find all versions of the php package tienhm7/laravel-hmvc-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tienhm7/laravel-hmvc-generator
More information about tienhm7/laravel-hmvc-generator
Files in tienhm7/laravel-hmvc-generator
Package laravel-hmvc-generator
Short Description this package which created to manage your large by modules using HMVC architectural pattern
License MIT
Homepage https://github.com/tienhm7/laravel-hmvc-generator
Informations about the package laravel-hmvc-generator
HMVC_Generator
A Laravel package to create and manage your large laravel app using modules [HMVC]
Folder Structure
- Modules
- User
- Config/
- Database/
- Migrations/
- Http/
- Controllers/
- UserController.php
- Middleware/
- UserMiddleware.php
- Requests/
- UserRequest.php
- Controllers/
- Models/
- User.php
- Providers/
- UserServiceProvider.php
- Lang/
- en/
- vi/
- Views/
- index.blade.php
- Routes/
- web.php "All Routes under "users" prefix"
- api.php "All Routes under "api/users" prefix"
- User
Artisan Commands
-
To create a new module you can simply run :
-
Create new Controller for the specified module :
-
Create new Model for the specified module :
-
Create new Middleware for the specified module :
-
Create new Request for the specified module :
- Create new Migration for the specified module :
Routes
api.php => These routes are loaded by the
ServiceProvider within a group which is assigned the "api" middleware group and "api/ " prefix web.php => These routes are loaded by the
ServiceProvider within a group which contains the "web" middleware group and " " prefix.
Views
Calling View: view('
::view_file_name')