livewire-datatables icon indicating copy to clipboard operation
livewire-datatables copied to clipboard

Cant use editable() with laravel 9

Open Renaud404 opened this issue 3 years ago • 5 comments

Hello,

When i make a column ->editable() since i did an upgrade to laravel 9 and datatables to 0.7.0 (or 0.8) i have this message :

Undefined variable $table

If i remove editable(), everthing works great,

I also tried the lastest 0.9.3, but i cant make a table works on this version (editable or not), juste a message : Undefined array key "align"

Any solution ? Do i have to change something in my code for newer version ?

Renaud404 avatar Apr 02 '22 08:04 Renaud404

I'm using laravel 9 with no issue. Have you updated your composer and packages?

shaneburrell avatar Apr 11 '22 19:04 shaneburrell

yep, but i use custom column with scope, action etc extensively, i dont got any problem on simple table.

Renaud404 avatar Apr 11 '22 19:04 Renaud404

I ran into the same issue, and to be honest, I'm surprised editable columns are working at all. If you look at the source code, you can see that the 'table' variable is not being passed into the editable view, hence it's undefined.

EricPaulson avatar Jul 28 '22 21:07 EricPaulson

I am having the same issue - Undefined variable $table

I am using PHP 8.2.0 and Laravel 9.52.7

I was having the error on livewire-datatables 0.9.5 and the error was happening. I upgraded to 0.10.1 and the same error is still happening.

nileshd avatar May 30 '23 08:05 nileshd

Ah.. i was able to solve it.. I had initially published the vendor assets to my views from the older version and did not republish with newer version.. after republishing the view assets, it works fine.

nileshd avatar May 30 '23 08:05 nileshd