38 lines
647 B
PHP
38 lines
647 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Jobs;
|
||
|
|
||
|
use Log;
|
||
|
use App\Jobs\Job;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
use Illuminate\Queue\InteractsWithQueue;
|
||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||
|
use App\Model\Photo;
|
||
|
|
||
|
class PhotoMove extends Job implements ShouldQueue
|
||
|
{
|
||
|
use InteractsWithQueue, SerializesModels;
|
||
|
|
||
|
private $photo;
|
||
|
|
||
|
/**
|
||
|
* Create a new job instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct(Photo $photo)
|
||
|
{
|
||
|
$this->photo = $photo;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Execute the job.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function handle()
|
||
|
{
|
||
|
Log::info('Moving: '.$this->photo->id);
|
||
|
}
|
||
|
}
|