zaster
230
4
Laravel

How to pass dispatches to the view in 1-M-N Kind of relation

Posted 3 months ago by zaster
$job->load(['sub_jobs.dispatches']);

I need to do a

@foreach($dispatches as $dispatch)
{
    ...
}
@endforeach

in the view

How can i get the dispatches?

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