Skip to content

Instantly share code, notes, and snippets.

@smilekomiya
smilekomiya / laravel5.2_pushing_to_specific_queue_server.php
Created January 18, 2018 12:45
laravel5.2 pushing to specific queue server
Mail::setQueue(Queue::connection('sqs_send_mail'))
->queueOn(
'queue-name',
$mail_template,
$mail_data,
function($message) use ($to, $subject, $from, $from_name) {
$message->to($to, $to)
->subject($subject)
->from($from, $from_name);
}