use implode function of php.
$seller->activite = implode(",",$request['activite']);
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, I have in my form a multiple select. When i click to my submit button I have this error: Array to string conversion I want to push values in my column activite in my database. Do you have idea how to fix that?
$seller->activite = array($request['activite']);
Thanks
I find the solution:
$seller->activite = implode(',', array_values($request['activite']));
Thanks all
Please or to participate in this conversation.