Created
June 12, 2020 00:16
-
-
Save ridwanbejo/ceac0f310e974ffcc09947575c73b6eb to your computer and use it in GitHub Desktop.
laravel-queue-sqs - routes/web.php v2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Storage; | |
use App\Jobs\ExampleJob; | |
use App\Jobs\HelloWorldJob; | |
use Ramsey\Uuid\Uuid; | |
... | |
$router->get('/test-queue', function () use ($router){ | |
$uuid = Uuid::uuid4(); | |
dispatch(new ExampleJob); | |
dispatch(new HelloWorldJob($uuid, "Hello world dari Serverless ID!")); | |
return "ExampleJob dan HelloWorldJob sedang dijalankan!"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment