hasMany(TestUser::class, 'parent_id'); } public function pets() { return $this->belongsToMany(TestPet::class)->withPivot('duration'); } }