Skip to content

Commit 33e9b6c

Browse files
authored
Merge pull request #10 from Laravel-Backpack/bug-construct-to-setup
[Bug Fix] Renamed __construct to setUp fixes #9
2 parents b7c2b86 + a551d19 commit 33e9b6c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Console/stubs/crud-controller.stub

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ use App\Http\Requests\DummyClassRequest as UpdateRequest;
1010

1111
class DummyClassCrudController extends CrudController {
1212

13-
public function __construct() {
14-
parent::__construct();
13+
public function setUp() {
1514

1615
/*
1716
|--------------------------------------------------------------------------
@@ -41,7 +40,7 @@ class DummyClassCrudController extends CrudController {
4140
// $this->crud->addColumns(); // add multiple columns, at the end of the stack
4241
// $this->crud->removeColumn('column_name'); // remove a column from the stack
4342
// $this->crud->removeColumns(['column_name_1', 'column_name_2']); // remove an array of columns from the stack
44-
// $this->crud->setColumnDetails('column_name', ['attribute' => 'value']);
43+
// $this->crud->setColumnDetails('column_name', ['attribute' => 'value']); // adjusts the properties of the passed in column (by name)
4544
// $this->crud->setColumnsDetails(['column_1', 'column_2'], ['attribute' => 'value']);
4645

4746
// ------ CRUD ACCESS

0 commit comments

Comments
 (0)