I did an installation from scratch with laravel 10.43 and installed livewire 3 and then installed powergrid 5 #1371
Answered
by
dansysanalyst
LeandroAndrade2020
asked this question in
Q&A
-
I've done different installations and always getting this error: Method PowerComponents\LivewirePowerGrid\PowerGridFields::addColumn does not exist. And showing that it is in this part of the code:
|
Beta Was this translation helpful? Give feedback.
Answered by
dansysanalyst
Feb 2, 2024
Replies: 2 comments
-
Hi @LeandroAndrade2020, thanks for letting us. The stubs were fixed. Please use use PowerComponents\LivewirePowerGrid\PowerGrid;
use PowerComponents\LivewirePowerGrid\PowerGridFields;
public function fields(): PowerGridFields
{
return PowerGrid::fields()
->add('id')
->add('name')
->add('email')
->add('created_at_formatted', fn (User $model) => Carbon::parse($model->created_at)->format('d/m/Y H:i:s'));
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LeandroAndrade2020
-
Fixed https://github.com/Power-Components/livewire-powergrid/releases/tag/v5.3.4 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @LeandroAndrade2020, thanks for letting us. The stubs were fixed.
Please use
add(...)
instead ofaddColumn(..)
.