2017 © Pedro Peláez
 

library modvel

Modular Pattern & Module Management for Laravel 5

image

furkankadioglu/modvel

Modular Pattern & Module Management for Laravel 5

  • Friday, September 16, 2016
  • by furkankadioglu
  • Repository
  • 2 Watchers
  • 8 Stars
  • 39 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Modvel

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

alt tag, (*2)

Installation

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

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

"furkankadioglu/modvel": "dev-master"

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

Service Provider
furkankadioglu\Modvel\ModuleServiceProvider::class,

Config

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

php artisan vendor:publish

Commands

alt tag, (*7)

  • php artisan module:make [module name]

alt tag, (*8)

  • php artisan module:list

alt tag, (*9)

  • php artisan module:migrate [module name]

alt tag, (*10)

  • php artisan module:migrateall

alt tag, (*11)

  • php artisan module:delete [module name]
Publish Files
laravel-project/
    config/
    |-- modulemanagement.php
    app/
    |-- BaseHelpers.php
    |-- Models/
        |-- Audio.php
        |-- Document.php
        |-- UploadedFile.php
        |-- Photo.php
        |-- Video.php
    |-- Http/
        |-- Controllers/
            |-- AdminTemplateController.php
            |-- MainTemplateController.php
            |-- AdminController.php
            |-- MainController.php
        |-- Middleware/
            |-- AdminMiddleware.php
    resources/
    |-- views/
        |-- masters/
            |-- admin.blade.php
            |-- main.blade.php

Example: Test Module Files
laravel-project/
    app/
    |-- modules/
        |-- Test
            |-- details.php
            |-- App/
                |-- Controllers/
                    |-- TestAdminSettingsController.php
                    |-- TestAdminController.php
                    |-- TestApiController.php
                    |-- TestController.php
                |-- Middlewares/
                |-- Models/
                    |-- Test.php
                    |-- TestModuleSetting.php
                |-- routes.php
                |-- TestHelpers.php
            |-- Config/
            |-- Resources/
                |-- views/
                    |-- admin/
                        |-- default/
                            |-- index.blade.php
                            |-- show.blade.php
                            |-- destroy.blade.php
                            |-- edit.blade.php
                            |-- create.blade.php
                            |-- settings/
                                |-- index.blade.php
                                |-- create.blade.php
                                |-- destroy.blade.php
                    |-- default/
                        |-- index.blade.php
                        |-- show.blade.php
                |-- lang/
                    |-- en/
                        |-- general.php
                    |-- tr/
                        |-- general.php
            |-- Database/
                |-- seeds/
                |-- migrations/
                    |-- 2016_01_01_010101_Test.php
                    |-- 2016_01_01_010101_TestSettings.php

The Versions

16/09 2016

dev-master

9999999-dev https://github.com/furkankadioglu/Modvel

Modular Pattern & Module Management for Laravel 5

  Sources   Download

MIT

The Requires

 

by Furkan Kadıoğlu

laravel generator structure pattern artisan modules modular furkan kadıoğlu l5module