2017 © Pedro Peláez
 

library modular

image

laralibs/modular

  • Friday, July 22, 2016
  • by daison12006013
  • Repository
  • 1 Watchers
  • 2 Stars
  • 305 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

alt tag, (*1)


master branch
Build Status

Now managing your applications to have the same resources is made easy with this package., (*2)

Imagine having an API, Admin Panel and some other functionalities that handles the same classes like service providers, models, events, console commands, migrations etc., (*3)

Installation

via console, execute this composer require laralibs/modular@0.*@dev, (*4)

in your laravel project add this in your composer.json, (*5)

{
    ...

    "autoload": {
        ...
        "psr-4": {
            ...
            "Modules\\": "modules"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

and add this ModularServiceProvider in your config/app.php at providers index., (*6)

'providers' => [
    ...

    LaraLibs\Modular\ModularServiceProvider::class,
],

When you are done adding this class, you should be able to see make:module command after running the php artisan, (*7)

Execution

When running the command, (*8)

php artisan make:console admin, this should generate the lists of files, (*9)

  • public/admin.php
  • modules/Admin/Console/Kernel.php
  • modules/Admin/Controllers/Controller.php
  • modules/Admin/Exceptions/Handler.php
  • modules/Admin/Http/Kernel.php
  • modules/Admin/Http/routes.php
  • modules/Admin/Providers/RouteServiceProvider.php

After that, insert the RouteServiceProvider.php in your providers config, something like Modules\Admin\Providers\RouteServiceProvider::class, (*10)

Web Server

Now point your NginX or Apache to use the public/admin.php instead, and you are set to go!, (*11)

Contributors

The Versions

22/07 2016

dev-develop

dev-develop

  Sources   Download

by Daison Carino

28/06 2016

dev-master

9999999-dev

  Sources   Download

by Daison Carino