adrema/app/Setting/LocalSettings.php

21 lines
369 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;
2024-08-01 13:33:28 +02:00
public function url(): string
2022-10-20 02:15:28 +02:00
{
2024-10-14 20:25:11 +02:00
return url('setting/' . $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
}