Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unknown column 'phone' in 'where clause' #1

Open
fetova opened this issue Nov 22, 2023 · 0 comments
Open

[Bug]: Unknown column 'phone' in 'where clause' #1

fetova opened this issue Nov 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@fetova
Copy link

fetova commented Nov 22, 2023

What happened?

When using the default searchable, I'm getting the error "Unknown column 'phone' in 'where clause'" when doing the search.

How to reproduce the bug

  • Make a table with a phone but name the relevant column differenty (phones, numeros... etc)
  • Use the Cheesegrits\FilamentPhoneNumbers\Columns\PhoneNumberColumn on the resource, with the default searchable()
  • Try to search a number.
  • Bug

Package Version

1.02

PHP Version

8.2.12

Laravel Version

10.33

Which operating systems does with happen with?

No response

Notes

This is because on Cheesegrits\FilamentPhoneNumbers\Columns\PhoneNumberColumn when searching, it assumes that the column name is "phone", which isn't my case, so the library needs to get the column name on make() instead of using plain "phone"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant