Cannot unset string offsets
bylioxdev opened this issue · 3 comments
bylioxdev commented
Have you searched through other issues to see if your problem is already reported or has been fixed?
Yes, I did not find it.
Did you read the documentation?
Yes, I did not find it.
Have you tried to publish the views?
Yes - I didn't work.
Is there an error in the console?
No
PHP Version
8.1.27
PowerGrid
5.4.8
Laravel
10.43.0
Livewire
3.4.5
Alpine JS
No response
Theme
Tailwind 3.x with tailwind/forms
Describe the bug.
When I try to add to a table a filter, i get the following error:
Cannot unset string offsets (View: /var/www/vhosts/BLUR/resources/views/vendor/livewire-powergrid/components/frameworks/tailwind/filters/input-text.blade.php)
To Reproduce...
Add an filter to an table:
public function filters(): array
{
return [
Filter::inputText('id', 'id')
];
}
Reload the page, and boom
Extra information
function filters(): array
{
return [
Filter::inputText('id', 'id')
];
}
bylioxdev commented
luanfreitasdev commented
Hello, @bylioxdev. Does this happen if you remove the last 'id' parameter?
return [
Filter::inputText('id')
];
luanfreitasdev commented
No answers, so closing this