Support oft parent groups
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Scopes\CommonModel;
|
||||
|
||||
/**
|
||||
* App-weite Einstellung als Schlüssel/Wert-Paar (z. B. die Bezeichnungen „Stamm"/„Bund").
|
||||
* Nicht mandantengebunden; gelesen wird über {@see \App\Repositories\GlobalSettingRepository}.
|
||||
*
|
||||
* @property string $key
|
||||
* @property string $value
|
||||
*/
|
||||
class GlobalSetting extends CommonModel
|
||||
{
|
||||
public const string LOCAL_GROUP_LABEL = 'local_group_label';
|
||||
public const string LOCAL_GROUP_LABEL_PLURAL = 'local_group_label_plural';
|
||||
public const string PARENT_GROUP_LABEL = 'parent_group_label';
|
||||
public const string PARENT_GROUP_LABEL_PLURAL = 'parent_group_label_plural';
|
||||
|
||||
protected $table = 'global_settings';
|
||||
protected $primaryKey = 'key';
|
||||
protected $keyType = 'string';
|
||||
public $incrementing = false;
|
||||
|
||||
protected $fillable = [
|
||||
'key',
|
||||
'value',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user