Корзина, массовые действия в списках и история записи в карточке
This commit is contained in:
1 parent
20f3d79552
commit
00bba5abfa
23 files changed
+936
No files matched your search
@@ -23,6 +23,9 @@ final class Role extends Model
|
||||
'is_system' => 'bool',
|
||||
];
|
||||
|
||||
/** Мягкое удаление: роль возвращается из корзины вместе с правами */
|
||||
protected bool $softDelete = true;
|
||||
|
||||
/**
|
||||
* Права роли.
|
||||
*
|
||||
|
||||
@@ -30,6 +30,9 @@ final class User extends Model
|
||||
'role_id' => 'int',
|
||||
];
|
||||
|
||||
/** Мягкое удаление: человека возвращают из корзины, пока его не добили */
|
||||
protected bool $softDelete = true;
|
||||
|
||||
public function role(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Role::class, 'role_id');
|
||||
|
||||
@@ -29,6 +29,9 @@ final class Webhook extends Model
|
||||
|
||||
protected array $casts = ['active' => 'bool', 'events' => 'json', 'failures' => 'int', 'last_status' => 'int'];
|
||||
|
||||
/** Мягкое удаление: подписку можно вернуть, журнал доставок остаётся */
|
||||
protected bool $softDelete = true;
|
||||
|
||||
/** Все события сразу: новое событие реестра подписка получит без правки */
|
||||
public const ALL_EVENTS = '*';
|
||||
|
||||
|
||||
Reference in new issue
Block a user