app['request']->headers->set('host', $host[1]); }; } } /** * Register any application services. * * @return void */ public function register() { $this->app->singleton('database', \App\Services\Database\Database::class); $this->app->singleton('option', \App\Services\Repositories\OptionRepository::class); } }