2024-03-13 17:26:30 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Jobs;
|
|
|
|
|
|
|
|
use App\Models\LocalFileVolume;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
2024-06-10 20:43:34 +00:00
|
|
|
class ServerStorageSaveJob implements ShouldBeEncrypted, ShouldQueue
|
2024-03-13 17:26:30 +00:00
|
|
|
{
|
|
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
|
2024-06-19 06:59:46 +00:00
|
|
|
public function __construct(public LocalFileVolume $localFileVolume) {}
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2024-03-13 17:26:30 +00:00
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
$this->localFileVolume->saveStorageOnServer();
|
|
|
|
}
|
|
|
|
}
|