Extension Component allows components or packages to be added dynamically to Orchestra Platform without the hassle of modifying the configuration.
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 |
5.1.x | 3.1.x |
5.2.x | 3.2.x@dev |
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.
Above installation can also be simplify by using the following command:
composer require "orchestra/extension=~3.0"
Next add the following service provider in config/app.php
.
'providers' => [
// ...
Orchestra\Extension\ExtensionServiceProvider::class,
Orchestra\Memory\MemoryServiceProvider::class,
Orchestra\Publisher\PublisherServiceProvider::class,
Orchestra\Extension\CommandServiceProvider::class,
],
Before we can start using Extension Component, please run the following:
php artisan extension:migrate
The command utility is enabled via
Orchestra\Extension\CommandServiceProvider
.