<?php

use App\Services\Settings\SettingsService;

if (! function_exists('setting')) {
    function setting(string $key, mixed $default = null, ?string $group = null): mixed
    {
        return app(SettingsService::class)->get($key, $default, $group);
    }
}
