yabhq / laravel-scout-mysql-driver

Laravel Scout MySQL Driver
MIT License
522 stars 113 forks source link

DB table prefix not handled correctly #55

Closed tomlankhorst closed 6 years ago

tomlankhorst commented 6 years ago

In response to #8, the database prefix is added to the $tableName attribute of ModelService (58aae1e). However, this prefix should only be added when executing SQL queries, not when using Laravel Database Builder functions like getColumnListing() as the Builder automatically prefixes table names with the configurated db prefix.