FIX: fix exception when debug bar was not installed
This commit is contained in:
@@ -55,8 +55,13 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function register()
|
||||
{
|
||||
if ($this->app->environment() == 'local') {
|
||||
$this->app->register('Iber\Generator\ModelGeneratorProvider');
|
||||
$this->app->register('Barryvdh\Debugbar\ServiceProvider');
|
||||
try {
|
||||
$this->app->register('Barryvdh\Debugbar\ServiceProvider');
|
||||
} catch (\Exception $e) {
|
||||
// this service provider may not exist when switching from other environment than local
|
||||
// until composer install is run
|
||||
// just ignore this exception and when no service provider is available, do not use debugbar
|
||||
}
|
||||
}
|
||||
|
||||
// register PingPong module extension
|
||||
|
||||
Reference in New Issue
Block a user