protected function tenantDatabaseExists(Website $website) : bool
    {
        try {
            $this->connection->set($website);

            $schema = $this->connection->get()->getSchemaBuilder();

            if ($schema->hasTable($this->table)) {
                return true;
            }
        } catch (\Exception $e) {
            // Suppress exception
        }

        return false;
    }
protected function tenantDatabaseExists(Website $website) : bool
    {
        try {
            $this->connection->set($website);

            $schema = $this->connection->get()->getSchemaBuilder();

            if ($schema->hasTable($this->table)) {
                return true;
            }
        } catch (\Exception $e) {
            // Suppress exception
        }

        return false;
    }
protected function tenantDatabaseExists ( Website $ website ) : bool { try { $ this -> connection -> set ( $ website ) ; $ schema = $ this -> connection -> get ( ) -> getSchemaBuilder ( ) ; if ( $ schema -> hasTable ( $ this -> table ) ) { return true ; } } catch ( \ Exception $ e ) { // Suppress exception } return false ; }
Checks if tenant database exists.

@param Website $website
@return bool
Checks if tenant database exists .