mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-16 23:32:15 +00:00
26 lines
639 B
PHP
26 lines
639 B
PHP
<?php
|
|
|
|
|
|
namespace Domain\SetupWizard\Actions;
|
|
|
|
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
class CreateDiskDirectoriesAction
|
|
{
|
|
/**
|
|
* Create default folders which application to process files.
|
|
*/
|
|
public function __invoke(): void
|
|
{
|
|
collect(['avatars', 'chunks', 'system', 'files', 'temp', 'zip'])
|
|
->each(function ($directory) {
|
|
// Create directory for local driver
|
|
Storage::disk('local')
|
|
->makeDirectory($directory);
|
|
|
|
// Create directory for external driver
|
|
Storage::makeDirectory($directory);
|
|
});
|
|
}
|
|
} |