From eacf0d184672e2293e44b66f02707829e10d3438 Mon Sep 17 00:00:00 2001 From: Alexander Gerber Date: Mon, 18 Mar 2024 10:40:36 +0100 Subject: [PATCH] Catalog to CatalogManager for tennant examble --- example/CatalogsTenantModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/CatalogsTenantModel.php b/example/CatalogsTenantModel.php index 6135244..a36da6c 100644 --- a/example/CatalogsTenantModel.php +++ b/example/CatalogsTenantModel.php @@ -3,7 +3,7 @@ namespace App\Models\Tenant; use Spatie\Multitenancy\Models\Tenant; -use Mariadb\CatalogsPHP\Catalog; +use Mariadb\CatalogsPHP\CatalogManager; /** * Class CatalogsTenantModel * @package App\Models\Tenant @@ -21,7 +21,7 @@ protected static function booted() public function createCatalogs() { if (self::$catalog === null) { - self::$catalog = new Catalog('localhost', 3306, 'root', 'rootPassword'); + self::$catalog = new CatalogManager('localhost', 3306, 'root', 'rootPassword'); } self::$catalog->create('test01');