dev-master
9999999-dev https://github.com/trieunb/ModulesA package module of team ans-asia build for dev
MIT
The Requires
- php >=5.6
- laravel/framework >=5.1
by Trieu Nguyen
module modules laravel module laravel modules trieunb
A package module of team ans-asia build for dev
This package gives you the ability to use Laravel 5 with module system.
You can simply drop or generate modules with their own controllers, models, views and a routes file into the app/Modules
folder and go on working with them., (*1)
The best way to install this package is through your terminal via Composer., (*3)
Run the following command from your projects root, (*4)
composer require "trieunb/modules @dev"
Once this operation is complete, simply add the service provider to your project's config/app.php
and you're done., (*5)
Trieunb\Modules\ModuleServiceProvider::class,
The built in Artisan command php artisan make:module name
generates a ready to use module in the app/Modules
folder and a migration if necessary., (*7)
This is how the generated module would look like:, (*8)
laravel-project/ app/ โโโ Modules/ โโโ Demo/ โโโ Controllers/ โ โโโ DemoController.php โโโ Models/ โ โโโ Demo.php โโโ Views/ โ โโโ index.blade.php ย ย ย ย ย ย โโโ routes.php ย ย ย ย ย ย ย ย
The generated RESTful Resource Controller
and the corresponding routes.php
make it easy to dive in. In my example you would see the output from the Modules/Demo/Views/index.blade.php
when you open laravel-project:8000/demo
in your browser., (*10)
modules is licensed under the terms of the MIT License (See LICENSE file for details)., (*11)
A package module of team ans-asia build for dev
MIT
module modules laravel module laravel modules trieunb