mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 17:04:04 +00:00
Fix typo
This commit is contained in:
parent
4f8d892481
commit
c40dba4e02
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ trait HasDataColumn
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($model->getAttributes() as $key => $value) {
|
foreach ($model->getAttributes() as $key => $value) {
|
||||||
if (! in_array($key, static::getCustomColums())) {
|
if (! in_array($key, static::getCustomColumns())) {
|
||||||
$current = $model->getAttribute(static::getDataColumn()) ?? [];
|
$current = $model->getAttribute(static::getDataColumn()) ?? [];
|
||||||
|
|
||||||
$model->setAttribute(static::getDataColumn(), array_merge($current, [
|
$model->setAttribute(static::getDataColumn(), array_merge($current, [
|
||||||
|
|
@ -119,7 +119,7 @@ trait HasDataColumn
|
||||||
return 'data';
|
return 'data';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getCustomColums(): array
|
public static function getCustomColumns(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id',
|
'id',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue