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');