Answer the question
In order to leave comments, you need to log in
Laravel. How to join values from 2 columns, 2 different tables)?
The programs table has a json_stream column. With the value m - I ["1stream","2stream"].
attach the channels table to the programs table, in which there is a stream column, with the value m - ["3stream","4stream"].
I make a selection like this $program = Program::with('channel')->first();
Is it possible to combine these fields at the ORM level to get
$program->all_streams == ["1stream","2stream","3stream","4stream"]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question