1 Answer
I have a problem with the Exceptions handler. By following this answer (which consists in adding a dd
in the render function of Handler.php
), I am now able to see what's going wrong.
So, here is the reason why my mail didn't send and why my page turned blank: Object of class Illuminate\Mail\Message could not be converted to string (View: /home/serveur-web/api.sl-projects.com/resources/views/emails/mailTemplate.blade.php)
.
The problem came from the fact that I was using the variable name $message
, and this causes problems because it seems to be used in the class that handles the mails. My problem was therefore solved by renaming this variable $mailContent
.
I hope this will help other people. :D
0 comments:
Post a Comment
Thanks