adrema/app/Setting/LocalSettings.php

21 lines
373 B
PHP
Raw 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;
public static function url(): string
{
2024-08-01 11:32:14 +02:00
return '/setting/' . static::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
}