mirror of
https://github.com/archtechx/virtualcolumn.git
synced 2025-12-12 09:34:04 +00:00
Use $model->getCustomColumns() instead of static::getCustomColumns()
This commit is contained in:
parent
e411001251
commit
cbd0b9221f
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ trait VirtualColumn
|
|||
}
|
||||
|
||||
$dataColumn = static::getDataColumn();
|
||||
$customColumns = static::getCustomColumns();
|
||||
$customColumns = $model->getCustomColumns();
|
||||
$attributes = array_filter($model->getAttributes(), fn ($key) => ! in_array($key, $customColumns), ARRAY_FILTER_USE_KEY);
|
||||
|
||||
// Remove data column from the attributes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue