You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Console/stubs/crud-controller.stub
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,12 @@ class DummyClassCrudController extends CrudController {
55
55
// NOTE: you also need to do allow access to the right users: $this->crud->allowAccess('details_row');
56
56
// NOTE: you also need to do overwrite the showDetailsRow($id) method in your EntityCrudController to show whatever you'd like in the details row OR overwrite the views/backpack/crud/details_row.blade.php
57
57
58
+
// ------ AJAX TABLE VIEW
59
+
// Please note the drawbacks of this though:
60
+
// - 1-n and n-n columns are not searchable
61
+
// - date and datetime columns won't be sortable anymore
62
+
// $this->crud->enableAjaxTable();
63
+
58
64
// ------ ADVANCED QUERIES
59
65
// $this->crud->addClause('active');
60
66
// $this->crud->addClause('type', 'car');
@@ -77,4 +83,4 @@ class DummyClassCrudController extends CrudController {
0 commit comments