3.0 documentation

Latest Stable Version Total Downloads MIT License

Extension Component allows components or packages to be added dynamically to Orchestra Platform without the hassle of modifying the configuration.

Table of Content

  1. Version Compatibility
  2. Installation
  3. Configuration
  4. Usage
  5. Change Log

Version Compatibility

Laravel Extension
4.0.x 2.0.x
4.1.x 2.1.x
4.2.x 2.2.x
5.0.x 3.0.x

Installation

To install through composer, simply put the following in your composer.json file:

{
    "require": {
        "orchestra/extension": "~3.0"
    }
}

And then run composer install from the terminal.

Quick Installation

Above installation can also be simplify by using the following command:

composer require "orchestra/extension=~3.0"

Configuration

Next add the service provider in config/app.php.

'providers' => [

    // ...

    'Orchestra\Extension\ExtensionServiceProvider',
    'Orchestra\Memory\MemoryServiceProvider',
    'Orchestra\Extension\PublisherServiceProvider',

    'Orchestra\Extension\CommandServiceProvider',
],

Aliases

You might want to add Orchestra\Support\Facades\Extension to class aliases in config/app.php:

'aliases' => [

    // ...

    'Extension' => 'Orchestra\Support\Facades\Extension',
],

Migrations

Before we can start using Extension component, please run the following:

php artisan extension:migrate

The command utility is enabled via Orchestra\Extension\CommandServiceProvider.