Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
esyede committed Oct 28, 2023
1 parent e2922b7 commit c1aa1e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/cache/drivers/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public function forget($key)
protected function table()
{
$db = Config::get('cache.database');
return DB::connection($db['connection'])->table($db['table']);
$connection = isset($db['connection']) ? $db['connection'] : null;
return DB::connection($connection)->table($db['table']);
}
}

0 comments on commit c1aa1e8

Please sign in to comment.