Untitled

mail@pastecode.io avatar
unknown
php
2 years ago
425 B
1
Indexable
Never
$u = \App\Models\User::find(8); $u->notify(new \App\Notifications\EmailTest());

// var_dump(get_class_methods($notification)); die;
array(10) {
  [0]=>
  string(11) "__construct"
  [1]=>
  string(3) "via"
  [2]=>
  string(6) "toMail"


// Error: Call to undefined method App\Notifications\EmailTest::toMail() in app/Notifications/MailjetChannel.php:20

// MailjetChannel.php:20
$message = $notification->toMail($notifiable);