Skip to content

Commit 87be452

Browse files
authored
Merge pull request #5485 from Laravel-Backpack/add-property-to-trait
Add property to AutoSet trait
2 parents f2878a6 + 1df60e2 commit 87be452

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/Library/CrudPanel/Traits/AutoSet.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
trait AutoSet
66
{
7+
protected $autoset = [];
8+
79
/**
810
* For a simple CRUD Panel, there should be no need to add/define the fields.
911
* The public columns in the database will be converted to be fields.
@@ -38,7 +40,7 @@ public function setFromDb($setFields = true, $setColumns = true)
3840
}
3941
}, $this->getDbColumnsNames());
4042

41-
unset($this->autoset);
43+
$this->autoset = [];
4244
}
4345

4446
/**

0 commit comments

Comments
 (0)