adrema/app/Setting/LocalSettings.php

28 lines
529 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 slug(): string;
/**
* @return class-string
*/
abstract public static function indexAction(): string;
/**
* @return class-string
*/
abstract public static function saveAction(): string;
abstract public static function title(): string;
public static function url(): string
{
return '/setting/'.static::slug();
}
}