Skip to content

Commit

Permalink
fix service provider so test only available in local / testing
Browse files Browse the repository at this point in the history
  • Loading branch information
spkvn committed Oct 2, 2017
1 parent 64997c9 commit 7a74d08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Validator;
use Illuminate\Support\ServiceProvider;
use Laravel\Dusk\DuskServiceProvider;

class AppServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -39,6 +40,8 @@ public function boot()
*/
public function register()
{
//
if ($this->app->environment('local', 'testing')) {
$this->app->register(DuskServiceProvider::class);
}
}
}
6 changes: 1 addition & 5 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,7 @@
App\Providers\RouteServiceProvider::class,

//debugbar
Barryvdh\Debugbar\ServiceProvider::class,

//dusk testing
Laravel\Dusk\DuskServiceProvider::class

Barryvdh\Debugbar\ServiceProvider::class
],

/*
Expand Down

0 comments on commit 7a74d08

Please sign in to comment.