public function byOrganizationAndByKey($organizationId, $key)
  {
    return $this->CostCenter->where('organization_id', '=', $organizationId)->where('key', '=', $key)->get();
  }
public function byOrganizationAndByKey($organizationId, $key)
  {
    return $this->CostCenter->where('organization_id', '=', $organizationId)->where('key', '=', $key)->get();
  }
public function byOrganizationAndByKey ( $ organizationId , $ key ) { return $ this -> CostCenter -> where ( 'organization_id' , '=' , $ organizationId ) -> where ( 'key' , '=' , $ key ) -> get ( ) ; }
Retrieve cost centers by organization and by key

@param  int $organizationId
@param  string $key

@return Illuminate\Database\Eloquent\Collection
Retrieve cost centers by organization and by key