-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
The table name returned by $model->getTable() is unprefixed, causing errors on the describe query if a table prefix is present.
| $table = $model->getTable(); |
| $safeTableName = \DB::getQueryGrammar()->wrap($table); |
This could be solved by adding the prefix manually:
$safeTableName = \DB::getQueryGrammar()->wrap($model->getConnection()->getTablePrefix() . $table);
I had this issue occur on an older Laravel version: 5.7
Not tested on anything newer.
Metadata
Metadata
Assignees
Labels
No labels