Skip to content

Instantly share code, notes, and snippets.

@ridwanbejo
Last active June 6, 2020 14:40
Show Gist options
  • Save ridwanbejo/47258451fcf661e86ba4935b95c4c38e to your computer and use it in GitHub Desktop.
Save ridwanbejo/47258451fcf661e86ba4935b95c4c38e to your computer and use it in GitHub Desktop.
laravel-queue-sqs - ExampleJob.php
<?php
namespace App\Jobs;
class ExampleJob extends Job
{
/**
* Create a new job instance.
*
* @return void
*/
public function __construct()
{
//
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
echo "Running an example job ...\n";
echo "Queue Broker: AWS SQS\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment