5 months ago

Get all Relations of a M to N - Before sending to the view

Posted 5 months ago by zaster

SubJob and Dispatch has a Many to Many relationship

I need to do something like this

      foreach($sub_jobs as $sub_job)
            $dispatches = $dispatches + $sub_job->dispatches;

Please sign in or create an account to participate in this conversation.