質問編集履歴
1
UserRegisterdNotifier Class 名に誤りがあった為修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -170,7 +170,7 @@
|
|
170
170
|
|
171
171
|
use Illuminate\Queue\InteractsWithQueue;
|
172
172
|
|
173
|
-
use App\Notifications\UserRegisterd;
|
173
|
+
use App\Notifications\UserRegisterdNotifier;
|
174
174
|
|
175
175
|
use Illuminate\Support\Facades\Notification;
|
176
176
|
|
@@ -184,7 +184,7 @@
|
|
184
184
|
|
185
185
|
{
|
186
186
|
|
187
|
-
//$event->user->notify(new UserRegisterd); // 失敗
|
187
|
+
//$event->user->notify(new UserRegisterdNotifier); // 失敗
|
188
188
|
|
189
189
|
// 以下成功
|
190
190
|
|
@@ -192,7 +192,7 @@
|
|
192
192
|
|
193
193
|
->route('slack', config('app.slack_webhook_url'))
|
194
194
|
|
195
|
-
->notify(new UserRegisterd);
|
195
|
+
->notify(new UserRegisterdNotifier);
|
196
196
|
|
197
197
|
}
|
198
198
|
|
@@ -204,7 +204,7 @@
|
|
204
204
|
|
205
205
|
|
206
206
|
|
207
|
-
app/Notifications/UserRegisterd.php
|
207
|
+
app/Notifications/UserRegisterdNotifier.php
|
208
208
|
|
209
209
|
|
210
210
|
|
@@ -232,7 +232,7 @@
|
|
232
232
|
|
233
233
|
|
234
234
|
|
235
|
-
class UserRegisterd extends Notification implements ShouldQueue
|
235
|
+
class UserRegisterdNotifier extends Notification implements ShouldQueue
|
236
236
|
|
237
237
|
{
|
238
238
|
|