Skip to content

Commit

Permalink
clean up config
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 13, 2020
1 parent f41f142 commit 668289a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 45 deletions.
27 changes: 0 additions & 27 deletions config/dusk.php

This file was deleted.

29 changes: 11 additions & 18 deletions src/DuskServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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,
]);
}
}
}

0 comments on commit 668289a

Please sign in to comment.