From 668289a3a323f79eb42b19a391ed33768aa82791 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 13 May 2020 09:16:27 -0500 Subject: [PATCH] clean up config --- config/dusk.php | 27 --------------------------- src/DuskServiceProvider.php | 29 +++++++++++------------------ 2 files changed, 11 insertions(+), 45 deletions(-) delete mode 100644 config/dusk.php diff --git a/config/dusk.php b/config/dusk.php deleted file mode 100644 index dd72cc21a..000000000 --- a/config/dusk.php +++ /dev/null @@ -1,27 +0,0 @@ - '_dusk', - - /* - |-------------------------------------------------------------------------- - | Dusk Domain - |-------------------------------------------------------------------------- - | - | This is the subdomain where Dusk will access its internal API routes. If this - | setting is null, Dusk will reside under the same domain as the - | application. Otherwise, this value will serve as the subdomain. - | - */ - - 'domain' => null, -]; diff --git a/src/DuskServiceProvider.php b/src/DuskServiceProvider.php index aaf245f4f..329958c82 100644 --- a/src/DuskServiceProvider.php +++ b/src/DuskServiceProvider.php @@ -16,7 +16,7 @@ public function boot() { if (! $this->app->environment('production')) { Route::group([ - 'prefix' => config('dusk.path'), + 'prefix' => config('dusk.path', '_dusk'), 'domain' => config('dusk.domain', null), 'middleware' => 'web', ], function () { @@ -47,23 +47,16 @@ public function boot() */ public function register() { - if (! $this->app->environment('production')) { - $this->mergeConfigFrom(__DIR__.'/../config/dusk.php', 'dusk'); - $this->publishes([ - __DIR__.'/../config/dusk.php' => config_path('dusk.php'), - ], 'dusk-config'); - - if ($this->app->runningInConsole()) { - $this->commands([ - Console\InstallCommand::class, - Console\DuskCommand::class, - Console\DuskFailsCommand::class, - Console\MakeCommand::class, - Console\PageCommand::class, - Console\ComponentCommand::class, - Console\ChromeDriverCommand::class, - ]); - } + if ($this->app->runningInConsole()) { + $this->commands([ + Console\InstallCommand::class, + Console\DuskCommand::class, + Console\DuskFailsCommand::class, + Console\MakeCommand::class, + Console\PageCommand::class, + Console\ComponentCommand::class, + Console\ChromeDriverCommand::class, + ]); } } }