39 lines
1,001 B
PHP
39 lines
1,001 B
PHP
<?php
|
|
|
|
namespace App\Jobs;
|
|
|
|
use App\Models\File;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
|
class FileJob implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
/**
|
|
* Create a new job instance.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
//$this->file = $fileInfo;
|
|
$this->file = [
|
|
'id' => 1,
|
|
'tmp_file_path' => '\/srv\/libretime\/organize\/14-Zela Margossian Quintet - On Ya.mp3',
|
|
'import_directory' => '\/srv\/libretime\/\/imported\/1', //$user->id,
|
|
'original_filename' => 'Zela Margossian Quintet - On Ya.mp3',
|
|
'options' => new \stdClass()
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Execute the job.
|
|
*/
|
|
public function handle(): void
|
|
{
|
|
dd($this->file);
|
|
}
|
|
}
|