Skip to content

Commit e3de340

Browse files
committed
logging the db connection error
1 parent 631dcb1 commit e3de340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PermissionServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function boot()
4646
DB::connection()->getPdo();
4747
app(PermissionRegistrar::class)->registerPermissions();
4848
} catch (\Exception $e) {
49-
die("Could not connect to the database. Please check your configuration. error:" . $e);
49+
\Log::error("Could not connect to the database. Please check your configuration. error:" . $e);
5050
}
5151
}
5252

0 commit comments

Comments
 (0)