zaster
7 months ago

Unique Results

Posted 7 months ago by zaster

$sub_jobs = $job->sub_jobs;

What i need is to get unique $sub_jobs;

Something like

$sub_jobs = $job->sub_jobs()->unique()->get();

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