public function hasTable($tableName)
    {
        if ($tableName instanceof Model) {
            $tableName = $tableName->tableName();
        }

        return $this->connection->getSchemaManager()->tablesExist([$tableName]);
    }
public function hasTable($tableName)
    {
        if ($tableName instanceof Model) {
            $tableName = $tableName->tableName();
        }

        return $this->connection->getSchemaManager()->tablesExist([$tableName]);
    }
public function hasTable ( $ tableName ) { if ( $ tableName instanceof Model ) { $ tableName = $ tableName -> tableName ( ) ; } return $ this -> connection -> getSchemaManager ( ) -> tablesExist ( [ $ tableName ] ) ; }
Check table in database.

@param null $tableName

@return bool
Check table in database .