zaster

Querying Relationship Existence

Posted 1 month ago by zaster
$sub_jobs = $job->sub_jobs; // No Issue

I want to do something like this after the above

 $sub_jobs = $sub_jobs::has('dispatches')->get(); // Wrong

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

Reply to

Use Markdown with GitHub-flavored code blocks.