Skip to content

Commit

Permalink
Catalog to CatalogManager for tennant examble
Browse files Browse the repository at this point in the history
  • Loading branch information
alegerber committed Mar 18, 2024
1 parent 8337217 commit eacf0d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/CatalogsTenantModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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');
Expand Down

0 comments on commit eacf0d1

Please sign in to comment.