adrema/app/Setting/LocalSettings.php

21 lines
394 B
PHP
Raw Permalink Normal View History

2022-10-20 02:15:28 +02:00
<?php
namespace App\Setting;
use Spatie\LaravelSettings\Settings;
abstract class LocalSettings extends Settings
{
abstract public static function title(): string;
2024-08-01 13:33:28 +02:00
public function url(): string
2022-10-20 02:15:28 +02:00
{
2024-08-01 13:33:28 +02:00
return route('setting.view', ['settingGroup' => $this->group()]);
2022-10-20 02:15:28 +02:00
}
2024-08-01 11:32:14 +02:00
/**
* @return array<string, mixed>
*/
abstract public function viewData(): array;
2022-10-20 02:15:28 +02:00
}