Custom model for spatie media library upload and spatie settings

I want to upload a media (favicon) on laravel settings but it seems they don't work with each other so I thought I create another model called MediaSetting

this is the migration notice it's the same schema as spatie laravel settings
$table->string('group');
$table->string('name')->index();


And here's my SeoSettings
class ManageSeo extends SettingsPage
{
    protected static string $settings = SeoSettings::class;
....

and so on here's the important part
Forms\Components\SpatieMediaLibraryFileUpload::make('favicon')
                    ->collection('favicon')
                    ->model(MediaSetting::class)

Isn't it possible to pass the model (MediaSetting) and it uses this one for file uploads ?

I would appreciate any help
Was this page helpful?