eloquent-has-many-deep
eloquent-has-many-deep copied to clipboard
doesn't work together jsonRelation
$this->hasManyDeepFromRelations($this->cities(), (new City())->franchisees());
City
public function franchisees(): HasManyJson { return $this->hasManyJson(FranchiseRegion::class, 'city->ids', 'city_id'); }