mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 12:33:06 +00:00
27 lines
637 B
PHP
27 lines
637 B
PHP
<?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;
|
|
|
|
class ServerStorageSaveJob implements ShouldQueue, ShouldBeEncrypted
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
|
|
public function __construct(public LocalFileVolume $localFileVolume)
|
|
{
|
|
}
|
|
public function handle()
|
|
{
|
|
$this->localFileVolume->saveStorageOnServer();
|
|
}
|
|
|
|
}
|