controller refactoring part 25

This commit is contained in:
Peter Papp
2021-07-22 07:49:25 +02:00
parent 6d8a7a429c
commit 5167f082f7
50 changed files with 252 additions and 481 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace Domain\Settings\Actions;
use Domain\Settings\Models\Setting;
class SeedDefaultSettingsAction
{
/**
* Store default VueFileManager settings into database
*/
public function __invoke(
string $license
): void {
collect(
config('content.content.' . strtolower($license))
)->each(fn ($content) => Setting::forceCreate($content));
}
}