You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Larastan does not respect multiple connections. I have two different connections (or databases) with a users table---their models have the $connection property in them so everything works.
However, when Larastan is scanning the migrations/schemas for the table properties it just puts all of the tables into an array keyed by the table name so one of the tables is overwritten (and therefore Larastan is throwing undefined property errors for that model).
Laravel code where the issue was found
if ($creating) {
$this->tables[$tableName] = newSchemaTable($tableName);
}
The text was updated successfully, but these errors were encountered:
--level
used: 1Description
Hello!
It seems that Larastan does not respect multiple connections. I have two different connections (or databases) with a
users
table---their models have the$connection
property in them so everything works.However, when Larastan is scanning the migrations/schemas for the table properties it just puts all of the tables into an array keyed by the table name so one of the tables is overwritten (and therefore Larastan is throwing
undefined property
errors for that model).Laravel code where the issue was found
The text was updated successfully, but these errors were encountered: