mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 02:10:39 +00:00
controller refactoring part 25
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,7 +5,7 @@ use Illuminate\Support\Facades\Storage;
|
||||
use Symfony\Component\HttpFoundation\StreamedResponse;
|
||||
use Illuminate\Contracts\Filesystem\FileNotFoundException;
|
||||
|
||||
class GetIAppController
|
||||
class GetAppImageController
|
||||
{
|
||||
/**
|
||||
* Get system image
|
||||
Reference in New Issue
Block a user