25 lines
514 B
PHP
25 lines
514 B
PHP
<?php
|
|
|
|
namespace App\Jobs;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Foundation\Bus\Dispatchable;
|
|
use Illuminate\Queue\InteractsWithQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class BackupDatabaseJob implements ShouldQueue
|
|
{
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
public function __construct(public $backup)
|
|
{
|
|
}
|
|
|
|
public function handle()
|
|
{
|
|
ray('BackupDatabaseJob');
|
|
ray($this->backup);
|
|
}
|
|
}
|