Array to String Conversion Error Exception on Notification::send
Hi everyone!
Suddenly I'm getting " Error Exception Array to String Conversion " when trying to send a notification.
It's so unexpected because it has worked previously and haven't changed the file.
I've been running some 'migration fresh', but still.. can't understand the issue.
$expediente = Expediente::find(2);
User::Role('supervisor')
->each(function(User $user) use($expediente){
Notification::send($user, new NuevoFormularioExpedienteNotification($expediente));
});
Even try with User::Role('supervisor')->get() but doesn't make a difference.
@tykus Hi again! Since you've been the only one to response, I ask you please, when you have a time, to check the stack trace.
I see the problem is related to the database. The thing is I neither understand why "replaceArray()" it's been called. Let me make clear that User:Role('supervisor') is retrieving two user models correctly. This was working properly.