-
-
Notifications
You must be signed in to change notification settings - Fork 328
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]: getSearchPlaceholder() Wrong Return #1951
Comments
For Livewire v3 - take careful note of how the core Livewire behaves. Notably, Alpine v3 is bundled in with Livewire v3, so you almost certainly do not need
In your layout, and this may be causing an issue! As to why you'd be seeing I can't see you defining setSearchPlaceholder() in your configure() method there. Is that the entirety of your Table where you're experiencing the issue? Just to rule out anything local, do you have a definition for "Search" locally in your lang files that would return an array? If you update your configure to match the below, what do you end up with:
|
Hey, After I removed Alpine in the code as you described, nothing changed. |
Okay, it looks like you're getting conflicts with what your existing localisations. You must have "Columns" defined in your resources/lang directory. We'll resume the prefix in a soon-to-be-released version. Have you published the views? We'd recommend not doing so for 99% of use cases. |
I use the language variables via the database. I don't actually have any that have anything to do with ‘columns’. But you can publish a fix for it or how do I understand that? and yeah i published the views i think :c |
The next release will have a new set of views that refer directly to livewire-tables for localisation. I anticipate releasing it tomorrow However - you will need to remove your published views before it takes effect. There is generally no need to publish the views! |
What happened?
Hey, i am new to this Package. I get the following error when i want to load the page:
Rappasoft\LaravelLivewireTables\DataTableComponent::getSearchPlaceholder(): Return value must be of type string, array returned
So i used the Example Component for my first Component:
In my Blade File i run simple this:
How to reproduce the bug
call up the page :c
Package Version
3.4.20
PHP Version
8.3.x
Laravel Version
11
Alpine Version
No response
Theme
Bootstrap 5.x
Notes
No response
Error Message
Rappasoft\LaravelLivewireTables\DataTableComponent::getSearchPlaceholder(): Return value must be of type string, array returned
The text was updated successfully, but these errors were encountered: