nicolaslopezj / searchable

A php trait to search laravel models
MIT License
2.01k stars 291 forks source link

Error if database has prefix #121

Open gordi256 opened 8 years ago

gordi256 commented 8 years ago

SearchableTrait.php string #123 // $columns[$prefix . $column] = $priority; $columns[ $column] = $priority; Trying to assign a prefix to the field instead of the table

pj10pm commented 8 years ago

+1

msonowal commented 7 years ago

same here when database driver has prefix it throws errors if the search model has relation in searchable array