You can't store an array in a database as a single column. I already suggested what to do. Alternatively you can store the array in a join table where each item is a column.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.