In a blade email view is it possible to get the To address?
eg
Mail::to('[email protected]')->send(new ActivationEmail( $data ));
Accessing the to address in blade eg {{ $to }}
I know I can pass it into the $data array ['to' => '[email protected]']
.
But not wanting to do that because would mean every single email call would require it and adding extra code when not required.
Im using the to email in my unsubscribe link in the layout template and seems stupid to have to pass the email via $data array to every email call just so the unsubscribe link can access it.