File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
namespace Studio \Totem \Providers ;
4
4
5
5
use Cron \CronExpression ;
6
+ use Illuminate \Support \Facades \Log ;
6
7
use Illuminate \Support \Facades \Schema ;
7
8
use Illuminate \Support \ServiceProvider ;
8
9
use Illuminate \Support \Facades \Validator ;
@@ -49,8 +50,13 @@ public function register()
49
50
$ this ->app ->register (TotemRouteServiceProvider::class);
50
51
$ this ->app ->register (TotemEventServiceProvider::class);
51
52
52
- if (Schema::hasTable ('tasks ' )) {
53
- $ this ->app ->register (ConsoleServiceProvider::class);
53
+ try {
54
+ if (Schema::hasTable ('tasks ' )) {
55
+ $ this ->app ->register (ConsoleServiceProvider::class);
56
+ }
57
+ } catch (\PDOException $ ex ) {
58
+ // This will trigger if DB cannot be connected to
59
+ Log::error ($ ex ->getMessage ());
54
60
}
55
61
56
62
$ this ->mergeConfigFrom (
You can’t perform that action at this time.
0 commit comments