token = $token; $this->notifiable = $notifiable; } /** * Get the message envelope. * * @return \Illuminate\Mail\Mailables\Envelope */ public function envelope() { return new Envelope( from: new Address(config("mail.from.address"), config("mail.from.name")), to: $this->notifiable->email, subject: 'Votre token API', ); } /** * Get the message content definition. * * @return \Illuminate\Mail\Mailables\Content */ public function content() { return new Content( view: 'mail.sendtoken', ); } /** * Get the attachments for the message. * * @return array */ public function attachments() { return []; } }