Closed ctf0 closed 4 years ago
hasManyDeepFromRelations()
returns the client in a collection. Use hasOneDeepFromRelations()
to get the client directly:
public function client()
{
return $this->hasOneDeepFromRelations($this->reservation(), (new Reservation())->client());
}
oh thats why, hasOneDeepFromRelations
is not in the readme.
many thanx for ur help 🏆
the setup is as follows
public function room() { return $this->belongsTo(Room::class); }
all working perfectly except i cant access the accessor
client->someTest
and here is the errorif u need more info, plz ask.