Laravel Backpack enableAjaxTable does not exist

I got the following error upgrading from Laravel Backpack 3.6 to 4.0.

BadMethodCallException Method Backpack\CRUD\app\Library\CrudPanel\CrudPanel::enableAjaxTable does not exist.

[enter image description here]

Upvotes: 0

Views: 388

Answers (1)

Zachary Weixelbaum
Zachary Weixelbaum

Reputation: 914

Starting in Laravel Backpack 3.4 it defaulted to using Ajax on all CRUD controllers, but allowed you to disable it and keep the legacy format (though you also had to use the old views for that). Starting Backpack 4.0 you can no longer choose, and everything automatically loads via Ajax. Therefore the call to use ajax tables is no longer necessary and you can just remove the call altogether

Upvotes: 1

Related Questions