| 1 | <?php |
||
| 10 | class Setting extends Model implements HasMedia |
||
|
|
|||
| 11 | { |
||
| 12 | use InteractsWithMedia; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var array |
||
| 16 | */ |
||
| 17 | protected $fillable = [ |
||
| 18 | 'group', 'key', 'title', 'value', 'type', 'options' |
||
| 19 | ]; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $casts = [ |
||
| 25 | 'options' => 'array' |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $delimiter |
||
| 30 | * @param string $default |
||
| 31 | * @return string|null |
||
| 32 | */ |
||
| 33 | public static function getValueFor($delimiter, $default = '') |
||
| 45 | } |
||
| 46 |