This commit is contained in:
Saeed Vaziry
2023-07-02 12:47:50 +02:00
commit 5c72f12490
825 changed files with 41659 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<?php
namespace App\Jobs\StorageProvider;
use App\Jobs\Job;
use App\Models\StorageProvider;
class DeleteFile extends Job
{
protected StorageProvider $storageProvider;
protected array $paths;
public function __construct(StorageProvider $storageProvider, array $paths)
{
$this->storageProvider = $storageProvider;
$this->paths = $paths;
}
public function handle(): void
{
$this->storageProvider->provider()->delete($this->paths);
}
}