public function accountsChartsTypesByCountry($id)
  {
    return $this->AccountChartType->where(function($query) use ($id)
      {
        $query->orWhere('country_id', '=', $id);
        $query->orWhereNull('country_id');
      })->get();
  }
public function accountsChartsTypesByCountry($id)
  {
    return $this->AccountChartType->where(function($query) use ($id)
      {
        $query->orWhere('country_id', '=', $id);
        $query->orWhereNull('country_id');
      })->get();
  }
public function accountsChartsTypesByCountry ( $ id ) { return $ this -> AccountChartType -> where ( function ( $ query ) use ( $ id ) { $ query -> orWhere ( 'country_id' , '=' , $ id ) ; $ query -> orWhereNull ( 'country_id' ) ; } ) -> get ( ) ; }
Retrieve accounts charts types by country

@param  array $id countries id

@return Illuminate\Database\Eloquent\Collection
Retrieve accounts charts types by country