VerburgtJimmy's avatar

Mail data not filled in mail view

I have a mail view named passwordReset.blade.php like this

But in the mail the code stays like this: {{ $code }}

This is my mailable class:

And i have already debugged and the value is not empty before in the constructor and content functions.

And this mail gets called like this: Mail::to($user->USER_EMAIL) ->send(new PasswordResetNew($user));

Thanks

0 likes
3 replies
VerburgtJimmy's avatar

The preview gives the same result with {{ $code }} included as a string and not rendering the actual code

VerburgtJimmy's avatar

Nope. still the same result but now with the !!

Er is een aanvraag gedaan voor het herstellen van je wachtwoord. Ben je dit niet geweest dan mag je deze e-mail negeren. Voor het opnieuw instellen van je wachtwoord voer je de onderstaande code in bij de app:

{!! $code !!}

Let op! Deze code is 30 minuten geldig.
VerburgtJimmy's avatar
VerburgtJimmy
OP
Best Answer
Level 1

I have fixed it. Apparently on ubuntu 24.04 when using php 8.3 this problem comes up. When downgrading to php 8.2 it fixes the issue immediately. Very weird but it works now. Thanks for your help

Please or to participate in this conversation.