Skip to content

Commit

Permalink
load laravel Debuggar only on locl and test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
norbybaru committed Aug 7, 2019
1 parent a9bf4a1 commit a742399
Show file tree
Hide file tree
Showing 5 changed files with 579 additions and 358 deletions.
5 changes: 3 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Providers;

use Laravel\Dusk\DuskServiceProvider;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
use Illuminate\Http\Resources\Json\Resource;
Expand All @@ -28,7 +27,9 @@ public function boot()
public function register()
{
if ($this->app->environment('local', 'testing')) {
$this->app->register(DuskServiceProvider::class);
$this->app->register(\Laravel\Dusk\DuskServiceProvider::class);
$this->app->register(\Barryvdh\Debugbar\ServiceProvider::class);
$this->app->register(\Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class);
}
}
}
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
"extra": {
"laravel": {
"dont-discover": [
"laravel/dusk"
"laravel/dusk",
"barryvdh/laravel-debugbar",
"rap2hpoutre/laravel-log-viewer"
]
}
},
Expand Down
Loading

0 comments on commit a742399

Please sign in to comment.