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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community