2017 © Pedro Peláez
 

library laravel-application

image

railken/laravel-application

  • Tuesday, June 26, 2018
  • by railken
  • Repository
  • 0 Watchers
  • 0 Stars
  • 569 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

Laravel Multi Application

A simple loader that permits to split the project in multiple parts or even create multiple application. All the basic functions of laravel will be automatically loaded: Commands, Resources/views, Resources/public, routes, Exceptions/Handler, Providers, (*1)

Requirements

PHP 5.6.4 or later., (*2)

Composer

You can install it via Composer by typing the following command:, (*3)

composer require railken/laravel-manager

Installation

  • Add the folder psr-4 to your composer.json and run composer update.
{
    "autoload": {
        "psr-4": {
            "": "src/"
        }
    },
}
  • Add the service provider to the providers array in config/app.php
Railken\Laravel\App\AppServiceProvider::class,
  • Replace "HandlerException in app/Exceptions/Handler" (Only laravel 5.3 +)
use Railken\Laravel\App\Exceptions\Handler as ExceptionHandler;

Usage

  • Create a new src package folder with php artisan railken:make:src Example at the root of your project.

Return view

return view('Example::index');

Assets

{{ asset('src/Example/assets/welcome/main.css' )}}

Exception Handler (Only laravel 5.3 +)


public function report(Exception $exception) { # Report only if it's a custom report # echo "A custom report"; } public function render($request, Exception $exception) { # Return only if it's a custom render # The first handler with a return in render method will be used # return parent::render($request, $exception); }

The Versions

26/06 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

26/06 2018

v1.1.0

1.1.0.0

  Sources   Download

The Requires

 

08/04 2018

v1.0.3

1.0.3.0

  Sources   Download

The Requires

 

20/02 2018

v1.0.2

1.0.2.0

  Sources   Download

The Requires

 

18/09 2017

v1.0.1

1.0.1.0

  Sources   Download

The Requires

 

18/09 2017

v1.0.0

1.0.0.0

  Sources   Download

The Requires