3.3 documentation

  1. Introduction
  2. Setting Admin URL

Introduction

All of the configuration files for the Orchestra Platform are stored in the resources/config directory. Each option is documented, so feel free to look through the files and get familiar with the options available to you.

Orchestra Platform needs almost no other configuration out of the box except for database configuration, which can be configured in .env file. However, you may wish to review the resources/config/app.php file and its documentation. It contains several options such as timezone and locale that you may wish to change according to your application.

Note: You should never have the app.debug configuration option set to true for a production application.

Setting Admin URL

Instead of using the default /admin prefix for your administration page, you can configure Orchestra Platform to handled by a different URL, to utilize this feature all you need to do is publish orchestra/foundation configuration using the following command:

php artisan publish:config orchestra/foundation

As Prefix

Edit handles key in resources/config/packages/orchestra/foundation/config.php to (as an example) "sudo". With this changes Orchestra Platform Administration page while be accessible from /sudo.

<?php

return [
    'handles' => 'sudo',
];

You could as well set it to "/" and it would handle the root uri. Else, read on to configure it as domain.

As Domain

You can also assign a sub-domain to handle Orchestra Platform Administration page by editing the handles value to //admin.{{domain}}.

<?php

return [
    'handles' => '//admin.{{domain}}',
];

However to do this, please make sure that you have set APP_URL value in .env and using Orchestra\Extension\Traits\DomainAwareTrait to allow {{domain}} to be resolved dynamically.

<?php namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Orchestra\Extension\Traits\DomainAwareTrait;

class AppServiceProvider extends ServiceProvider
{
    use DomainAwareTrait;

    /**
     * Boot the service provider.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerDomainAwareness();
    }
}