I filled a column in my database with some information, but is filling all records with all elements in each space of the column, and I would like that each element take a place in the column forming a kind of list. This is the query that I'm using.
$data = DB::table('incidencias')
->join('clientes_incid', 'clientes_incid.rif', '=', 'incidencias.rif')
->select('incidencias.rif')
->distinct()
->get();
DB::table('incidencias')->update(['resultado' => $data]);
I want to store each element of the array in a diferent row but in the same column
Can somebody help me?