Support the ongoing development of Laravel.io →
Requests Mail Queues
Last updated 2 years ago.
0

The issue is that although you are passing your token to the notification class, you aren't doing anything with it in the constructor. You need to set up the property and then assign it when you pass it through.

// Class definition above
protected $token;
public function __construct($token) {
 $this->token = $token
}

Then you will have access to your token property

Last updated 8 years ago.
0

Of course... rookie mistake Thank you!!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

TorchSK torchsk Joined 17 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.