diff --git a/src/Seeds/ROCitySeeder.php b/src/Seeds/ROCitySeeder.php index ffd179d..7aedb45 100644 --- a/src/Seeds/ROCitySeeder.php +++ b/src/Seeds/ROCitySeeder.php @@ -11,7 +11,7 @@ class ROCitySeeder extends CsvSeeder public function __construct() { $this->table = config('rajaongkir.table_prefix').'cities'; - $this->filename = dirname(__FILE__, 2) . '../../resources/csv/city.csv'; + $this->filename = dirname(__FILE__, 3) . '/resources/csv/city.csv'; $this->csv_delimiter = ','; $this->offset_rows = 1; $this->mapping = [ diff --git a/src/Seeds/ROCountrySeeder.php b/src/Seeds/ROCountrySeeder.php index f7eb855..f038fc0 100644 --- a/src/Seeds/ROCountrySeeder.php +++ b/src/Seeds/ROCountrySeeder.php @@ -11,7 +11,7 @@ class ROCountrySeeder extends CsvSeeder public function __construct() { $this->table = config('rajaongkir.table_prefix').'countries'; - $this->filename = dirname(__FILE__, 2) . '../../resources/csv/country.csv'; + $this->filename = dirname(__FILE__, 3) . '/resources/csv/country.csv'; $this->csv_delimiter = ','; $this->offset_rows = 1; $this->mapping = [ diff --git a/src/Seeds/ROProvinceSeeder.php b/src/Seeds/ROProvinceSeeder.php index 3756efb..6267fcf 100644 --- a/src/Seeds/ROProvinceSeeder.php +++ b/src/Seeds/ROProvinceSeeder.php @@ -11,7 +11,7 @@ class ROProvinceSeeder extends CsvSeeder public function __construct() { $this->table = config('rajaongkir.table_prefix').'provinces'; - $this->filename = dirname(__FILE__, 2) . '../../resources/csv/province.csv'; + $this->filename = dirname(__FILE__, 3) . '/resources/csv/province.csv'; $this->csv_delimiter = ','; $this->offset_rows = 1; $this->mapping = [ diff --git a/src/Seeds/ROSubDistrictSeeder.php b/src/Seeds/ROSubDistrictSeeder.php index 14f8cd6..b646e58 100644 --- a/src/Seeds/ROSubDistrictSeeder.php +++ b/src/Seeds/ROSubDistrictSeeder.php @@ -11,7 +11,7 @@ class ROSubDistrictSeeder extends CsvSeeder public function __construct() { $this->table = config('rajaongkir.table_prefix').'subdistricts'; - $this->filename = dirname(__FILE__, 2) . '../../resources/csv/subdistrict.csv'; + $this->filename = dirname(__FILE__, 3) . '/resources/csv/subdistrict.csv'; $this->csv_delimiter = ','; $this->offset_rows = 1; $this->mapping = [