connection()->config(); if (isset($connectionConfig['prefix'])) { $prefix = $connectionConfig['prefix']; } } if (!empty($prefix)) { $this->_tablePrefix = $prefix; } return $this->_tablePrefix; } /** * Returns the database table name or sets a new one * * @param string|null $table the new table name * @return string */ public function table($table = null) { if (!empty($table)) { $table = $this->_tablePrefix . $table; } return parent::table($table); } }