Skip to content

Commit 11f8fa9

Browse files
authored
Update crud-controller.stub
1 parent 67431c9 commit 11f8fa9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Console/stubs/crud-controller.stub

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ class DummyClassCrudController extends CrudController {
5555
// NOTE: you also need to do allow access to the right users: $this->crud->allowAccess('details_row');
5656
// 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
5757

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+
5864
// ------ ADVANCED QUERIES
5965
// $this->crud->addClause('active');
6066
// $this->crud->addClause('type', 'car');
@@ -77,4 +83,4 @@ class DummyClassCrudController extends CrudController {
7783
{
7884
return parent::updateCrud();
7985
}
80-
}
86+
}

0 commit comments

Comments
 (0)