Skip to content
Advertisement

Tag: laravel-controller

Get the two different objects together

I’ve got $campus_groups coming from CampusGroup which has and $campus_org_groups coming from CampusOrganizationGroup which has and would like to get both together like this (the important key is group_id and I’m ok if campus_organization_id is left out) If I merge them this is what I’m getting If I union them this is what I’m getting Answer I’ve changed to Notice

Advertisement