I am trying to access the 4th table, but it gives errors
cities.city_id doesn't exists. but why should it look for city_id in cities table? it should look for id
//hasManyDeeo
public function asset_depreciations()
{
return $this->hasManyDeep(AssetDepreciation::class, [City::class, Location::class, Asset::class]);
}
I am trying to access the 4th table, but it gives errors cities.city_id doesn't exists. but why should it look for city_id in cities table? it should look for id