Passing array to Blade::render for email template
I'm working on a custom email system with email template
all works fine until the variables that i pass to Blade::render are strings
but i need to sent an array
this array is a results of a repeater field and is soterd in the db as json field
this is the relevant part of my code
the error is
htmlspecialchars(): Argument #1 ($string) must be of type string, array given
without the accessories, works fine
1 Reply
The output in your blade file is probably wrong {{ $accessories }} for work with an array. You need to loop it.