Skip to content

Commit

Permalink
Merge pull request #5485 from Laravel-Backpack/add-property-to-trait
Browse files Browse the repository at this point in the history
Add property to AutoSet trait
  • Loading branch information
pxpm authored Apr 3, 2024
2 parents f2878a6 + 1df60e2 commit 87be452
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/Library/CrudPanel/Traits/AutoSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

trait AutoSet
{
protected $autoset = [];

/**
* For a simple CRUD Panel, there should be no need to add/define the fields.
* The public columns in the database will be converted to be fields.
Expand Down Expand Up @@ -38,7 +40,7 @@ public function setFromDb($setFields = true, $setColumns = true)
}
}, $this->getDbColumnsNames());

unset($this->autoset);
$this->autoset = [];
}

/**
Expand Down

0 comments on commit 87be452

Please sign in to comment.