2017 © Pedro Peláez
 

library laravelmodules

Modular Pattern for Laravel 5

image

d35k/laravelmodules

Modular Pattern for Laravel 5

  • Wednesday, October 25, 2017
  • by d35k
  • Repository
  • 0 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Module Management

Modular Pattern & Module Management for Laravel 5, (*1)

Installation

The best way to install this package is through your terminal via Composer., (*2)

Add the following line to the composer.json file and fire composer update, (*3)

"d35k/laravelmodules": "dev-master"

Once this operation is complete, simply add the service provider to your project's config/app.php, (*4)

Service Provider

d35k\laravelmodules\ModuleServiceProvider::class,

Getting started

The built in Artisan command php artisan make:module name [--no-migration] [--no-translation] generates a ready to use module in the app/Modules folder and a migration if necessary., (*5)

laravel-project/
    app/
    |-- Modules/
        |-- FooBar/
            |-- Controllers/
                |-- FooBarController.php
                |-- FooBarApiController.php
                |-- FooBarAdminController.php
            |-- Models/
                |-- FooBar.php
            |-- Views/
                |-- default/
                    |-- index.blade.php
                |-- admin/
                    |-- index.blade.php
                |-- api/
                    |-- index.blade.php
            |-- Translations/
                |-- en/
                    |-- general.php
                |-- tr/
                    |-- general.php
            |-- routes.php
            |-- helper.php
            |-- details.php

Config

Getting to module config file and generators:, (*6)

php artisan vendor:publish

Files, (*7)

laravel-project/
    config/
    |-- modulemanagement.php
    app/
    |-- BaseHelpers.php
    |-- Http/
        |-- Controllers/
            |-- AdminTemplateController.php
            |-- MainTemplateController.php
            |-- AdminController.php
            |-- MainController.php

General

Based on L5 Modular, thanks to Artem Schander., (*8)

To Do List

  • Modular Pattern Generator with arrays
  • Relocate arrays in config folder
  • Generate a Module Management Controller
  • Generate a Module Management View(s)

The Versions

25/10 2017

dev-master

9999999-dev https://github.com/d35k/laravelmodules

Modular Pattern for Laravel 5

  Sources   Download

MIT

The Requires

 

by Göktuğ Hatipoğlu

laravel generator structure pattern artisan modules modular l5module göktuğ hatipoğlu