I have a Posts
object, that may or may not have a Link
object (Link belongsTo Post and Post hasOne Link).
I'm trying to find Posts that were created after a certain date that don't have a Link created yet.
I have the following but it doesn't work:
$posts = Post::where('post_date', '>', 'xxxx')->whereIsNull('link.id'); // which is how I would write it with an OUTER JOIN.
What am I missing here?