'connections' => [
'sqs-sns' => [
'driver' => 'sqs-sns',
'key' => env('AWS_ACCESS_KEY', 'your-public-key'),
'secret' => env('AWS_SECRET_ACCESS_KEY', 'your-secret-key'),
'queue' => env('QUEUE_URL', 'your-queue-url'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'routes' => [
// you can use the "Subject" field
'Subject' => 'App\\Jobs\\YourJob',
// or the "TopicArn" of your SQS message
'TopicArn:123' => 'App\\Jobs\\YourJob',
// to specify which job class should handle the job
],
],
],
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
/**
* Example Job class
*/
class Job implements ShouldQueue
{
use InteractsWithQueue, Queueable, SerializesModels;
/**
* @param string $subject SNS Subject
* @param array $payload JSON decoded 'Message'
*/
public function __construct(string $subject, array $payload)
{
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.