this won't work
Alpha::find($id)->betas->charlie
because
Alpha::find($id)->betas; // returns a collection
try this
foreach(Alpha::find($id)->betas as $beta) {
$charlie= $beta->charlie;
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community