1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 13:54:03 +00:00
This commit is contained in:
Samuel Štancl 2020-05-21 17:00:57 +02:00
parent 4f8d892481
commit c40dba4e02

View file

@ -28,7 +28,7 @@ trait HasDataColumn
}
foreach ($model->getAttributes() as $key => $value) {
if (! in_array($key, static::getCustomColums())) {
if (! in_array($key, static::getCustomColumns())) {
$current = $model->getAttribute(static::getDataColumn()) ?? [];
$model->setAttribute(static::getDataColumn(), array_merge($current, [
@ -119,7 +119,7 @@ trait HasDataColumn
return 'data';
}
public static function getCustomColums(): array
public static function getCustomColumns(): array
{
return [
'id',