First, I'm french, sleep deprived, the last thing I want is to appear smug or passive aggressive because my english isn't good enough.
In yesterday's Advanced Querying with Eloquent talk (which was very good), you defined a lastInteraction
relation like this :
public function lastInteraction()
{
return $this->hasOne(Interaction::class, 'id', 'last_interaction_id');
}
public function scopeWithLastInteraction($query)