I have two related tables, one-to-many links: 1. Trip (trips) - one 2. Order (orders) - many
I need to collect an Order collection. I execute the query
Trip :: find (10) -> orders
I get a collection with the necessary order, but in the trip field I have an exit ID, and I need to get it through the linked table title
#attributes: array:16 [▼ "id" => 139 "id_num" => "CD192" "trip" => 10 --- ВОТ ЗДЕСЬ, мне нужно значение не ID связанной таблицы а TITLE ---- "f_Name" => "Ал.." "l_Name" => "Ант..." "d_phone" => "+7...." "stuf" => "Не нужно" "fSize" => " " "foot" => " " "ekip" => "Шлем" "teacher" => "Нет" "about" => "Уже ездил(а) с вами" "report" => " " "pay" => 0 "created_at" => "2019-02-28 16:23:52" "updated_at" => "2019-02-28 16:23:52" ]
Tell me how to do it, thanks!