rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.78k stars 337 forks source link

[Bug]: Undefined variable $columns #1924

Closed rajbalar004 closed 2 months ago

rajbalar004 commented 2 months ago

What happened?

After trying composer update, all I can see in pages with tables is Undefined variable $columns or Undefined array key "filterLayout" if filters are enabled.

How to reproduce the bug

No response

Package Version

3.4.17

PHP Version

8.2.x

Laravel Version

10.48.20

Alpine Version

No response

Theme

Bootstrap 5.x

Notes

No response

Error Message

No response

mohamadarifin97 commented 2 months ago
php artisan clear-compiled &&
php artisan cache:clear &&
php artisan route:clear &&
php artisan view:clear &&
php artisan config:clear &&
composer dumpautoload -o

run this

rajbalar004 commented 2 months ago
php artisan clear-compiled &&
php artisan cache:clear &&
php artisan route:clear &&
php artisan view:clear &&
php artisan config:clear &&
composer dumpautoload -o

run this

I have run this command already..

shawe commented 2 months ago

Also appears to me on production, working without problems on local. For me this works:

php artisan clear-compiled &&
php artisan cache:clear &&
php artisan route:clear &&
php artisan view:clear &&
php artisan config:clear &&
composer dumpautoload -o
lrljoe commented 2 months ago

Are you running injection or bundled assets? Did you previously publish the views? (this is very much not recommended)

shawe commented 2 months ago

Are you running injection or bundled assets? Did you previously publish the views? (this is very much not recommended)

Yes previously I published, in other issue that was closed some days ago I tell the other problem.

adilaslam1807 commented 1 month ago

how you fix this

shawe commented 1 month ago

how you fix this

With the previous shared commands.

adilaslam1807 commented 1 month ago

yes it fixed thanks