Skip to content

Instantly share code, notes, and snippets.

@Wpkenpachi
Created November 28, 2017 17:31
Show Gist options
  • Save Wpkenpachi/4970bbcc0b02203976d88e8adba6f0cf to your computer and use it in GitHub Desktop.
Save Wpkenpachi/4970bbcc0b02203976d88e8adba6f0cf to your computer and use it in GitHub Desktop.
<?php
namespace App\Http\Controllers;
use Carbon\Carbon;
use Illuminate\Http\Request;
use App\Jobs\ManageEvents;
class TestController extends Controller
{
public function task(){
ManageEvents::dispatch()->delay( Carbon::now()->addMinutes(1) )->onConnection('database')->onQueue('calendar');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment