Hi. We are using voyager and our tables location in two different databases. Every model extends from abstract model, who extends by typical Eloquent Model:
abstract class AbstractModel extends Model
{
protected $connection = "blablabla"; // for other clsses this use other database connections name
public function getTable()
{
$table = parent::getTable();
if (strpos($table, '.') !== false) {
return $table;
}
$table = $this->getConnection()->getDatabaseName() . ".$table";
return $table;
}
}
If table has database prefix, BREAD is crushed. On page "/edit" empty content in section "Edit the rows for the incident_control_statuses table below:"
BREADs dont work with full path name table, when id path includes database name.
UPD/Solution:
Problem in this method: \TCG\Voyager\Database\Schema\SchemaManager::listTableDetails
at line 56:
Version information
Description
Hi. We are using voyager and our tables location in two different databases. Every model extends from abstract model, who extends by typical Eloquent Model:
If table has database prefix, BREAD is crushed. On page "/edit" empty content in section "Edit the rows for the incident_control_statuses table below:"
BREADs dont work with full path name table, when id path includes database name.
UPD/Solution: Problem in this method: \TCG\Voyager\Database\Schema\SchemaManager::listTableDetails at line 56:
you must search first part in $tableName and call method as: