We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e977d53 commit 895170cCopy full SHA for 895170c
src/app/Models/Traits/HasRelationshipFields.php
@@ -39,7 +39,7 @@ public function getConnectionWithExtraTypeMappings()
39
*/
40
public function getTableWithPrefix()
41
{
42
- $prefix = Config::get('database.connections.'.$this->getConnectionName().'.prefix');
+ $prefix = $this->getConnection()->getTablePrefix();
43
$tableName = $this->getTable();
44
45
return $prefix.$tableName;
0 commit comments