修复未定义table
This commit is contained in:
@@ -93,6 +93,8 @@ abstract class Factory
|
||||
{
|
||||
$tables = Db::getConnection()->getTables();
|
||||
|
||||
return in_array(\config('database.connections.mysql.prefix') . $table, $tables);
|
||||
$table = \config('database.connections.mysql.prefix') . $table;
|
||||
|
||||
return in_array($table, $tables) ? $table : false;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user