I am using Laravel Notification to notify users about certain things. Everything works as expected but there are certain cases where I get the next error.
(1/1) InvalidPayloadException
Unable to JSON encode payload. Error code: 5
The thing that I noticed when I get these errors is that the users being notified have data in a BLOB column in the users table. My guess is that for some reason Laravel is not being able to serialize the values contained in the BLOB column and as a result of that I get the error shown above.
Actually, if I change the values of that column to NULL the notification process works perfectly. I tried to use the hidden and cast properties in the User model but it doesn't help.
Reading the documentation I haven't found the way to change that serialization so I can make it work. Is there anything I can to change this behavior?
I appreciate your comments. Thanks in advance!