Skip to content

Commit

Permalink
Merge pull request #119 from Laravel-Backpack/fix-for-mongo-db
Browse files Browse the repository at this point in the history
Fix for MongoDB
  • Loading branch information
tabacitu authored Sep 28, 2021
2 parents 55857e4 + 06591b0 commit 348a67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SettingsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function boot()
$this->setupRoutes($this->app->router);

// only use the Settings package if the Settings table is present in the database
if (!\App::runningInConsole() && count(Schema::getColumnListing(config('backpack.settings.table_name')))) {
if (!\App::runningInConsole() && Schema::hasTable(config('backpack.settings.table_name'))) {
// get all settings from the database
$settings = Setting::all();

Expand Down

0 comments on commit 348a67b

Please sign in to comment.