Relate tables with string type fields with laravel


I have some tables already related from the migration since the fields are of type int and contain a single value:


My question is how to relate a field of type string, because in that field I keep an array of values that correspond to several id of the table to relate. Example 1,3,5,7 is the value contained in the field of my first table, the idea is to obtain the values contained in the table related to each one of those id.

asked by Joe 08.10.2018 в 14:25

0 answers