F
Filament•15mo ago
nostrodamned

Spatie Settings multiple groups on one page

Hi All, I am trying to figure out how to do this: I am using Spatie Settings and have multiple groups(global, finance, security etc) How can i save data to multiple groups on a settings page - as i am specifying public static function group(): string { return 'global'; } on each Settings class? eg.
<?php

namespace App\Filament\Settings;
use Spatie\LaravelSettings\Settings;

class GlobalAgencySettings extends Settings
{
public ?string $agency_timezone;

public ?string $agency_date_format;

public ?string $agency_time_format;

public static function group(): string
{
return 'global';
}
}
<?php

namespace App\Filament\Settings;
use Spatie\LaravelSettings\Settings;

class GlobalAgencySettings extends Settings
{
public ?string $agency_timezone;

public ?string $agency_date_format;

public ?string $agency_time_format;

public static function group(): string
{
return 'global';
}
}
I was trying to avoid having one huge settings class 🙂
3 Replies
Jacob
Jacob•14mo ago
@cvc Hey, have you figured out how to do this?
nostrodamned
nostrodamnedOP•14mo ago
I ended up not using spatiier as it didn’t seem possible @Jacob
Jacob
Jacob•14mo ago
Which package do you suggest to use?
Want results from more Discord servers?
Add your server