Skip to content

Commit ffeccce

Browse files
authored
Merge pull request #19 from royduin/master
Configurable queue
2 parents 2784873 + b4c6265 commit ffeccce

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"require": {
1818
"php": "^7.3|^8.0",
19-
"laravel/framework": "6.*|7.*|8.*"
19+
"laravel/framework": "6.*|7.*|8.*|9.*"
2020
},
2121
"require-dev": {
2222
"orchestra/testbench": "^6.0",

src/App/Notifications/SendVerificationCodeEmail.php

+12
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ public function via($notifiable)
3535
return ['mail'];
3636
}
3737

38+
/**
39+
* Determine which queues should be used for each notification channel.
40+
*
41+
* @return array
42+
*/
43+
public function viaQueues()
44+
{
45+
return [
46+
'mail' => config('laravel2step.laravel2stepEmailQueue'),
47+
];
48+
}
49+
3850
/**
3951
* Get the mail representation of the notification.
4052
*

src/config/laravel2step.php

+8
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,12 @@
5959
'laravel2stepBootstrapCssCdn' => env('LARAVEL_2STEP_BOOTSTRAP_CSS_CDN', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'),
6060
'laravel2stepCssFile' => env('LARAVEL_2STEP_CSS_FILE', 'css/laravel2step/app.css'),
6161

62+
/*
63+
|--------------------------------------------------------------------------
64+
| Verification Email Queue
65+
|--------------------------------------------------------------------------
66+
*/
67+
68+
'laravel2stepEmailQueue' => env('LARAVEL_2STEP_EMAIL_QUEUE', null),
69+
6270
];

0 commit comments

Comments
 (0)