2017 © Pedro Pelรกez
 

package modules

A package module of team ans-asia build for dev

image

trieunb/modules

A package module of team ans-asia build for dev

  • Wednesday, April 4, 2018
  • by trieunb
  • Repository
  • 2 Watchers
  • 3 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 17 % Grown

The README.md

Modules

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)

Documentation

, (*2)

Installation

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)

Service Provider

Trieunb\Modules\ModuleServiceProvider::class,

, (*6)

Getting started

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
 ย  ย  ย  ย  ย  ย  ย  ย 

, (*9)

Usage

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)

License

modules is licensed under the terms of the MIT License (See LICENSE file for details)., (*11)


The Versions

04/04 2018

dev-master

9999999-dev https://github.com/trieunb/Modules

A package module of team ans-asia build for dev

  Sources   Download

MIT

The Requires

 

by Trieu Nguyen

module modules laravel module laravel modules trieunb