Fix BindingResolutionError when debug toolbar isn't present (#465)

* Fix BindingResolutionError when debug toolbar isn't present

* Formatting
This commit is contained in:
Nabeel S
2019-12-11 15:12:31 -05:00
committed by GitHub
parent e6d38f9338
commit a58bca390b
8 changed files with 67 additions and 21 deletions

View File

@@ -11,6 +11,7 @@ use App\Services\Installer\MigrationService;
use App\Services\Installer\SeederService;
use App\Services\UserService;
use App\Support\Countries;
use Illuminate\Contracts\Container\BindingResolutionException;
use Illuminate\Database\QueryException;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
@@ -63,7 +64,10 @@ class InstallerController extends Controller
$this->seederSvc = $seederSvc;
$this->userService = $userService;
app('debugbar')->disable();
try {
app('debugbar')->disable();
} catch (BindingResolutionException $e) {
}
}
/**