Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AkinBredailik's avatar

Laravel nova and belongsToThrough?

Is there a way to display in Laravel Nova Resource a relation like this ?

$report->meter->user where

  • a report belongs to a meter
  • a meter belongs to a user I am in report ressource https://omegle.club and I want to display related user
0 likes
1 reply
Shaden's avatar

Hi @akinbredailik Laravel does not support belongsToThrough neither does Nova , you can use hasOneThrough, and is supported by both Laravel and Nova. if you are using a third party package , you can use a callback like @medrano85012 recommended.

Please or to participate in this conversation.