Skip to content

Commit

Permalink
🐛 fix: wrong csv folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigsto committed Apr 24, 2022
1 parent bce5208 commit 367340b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Seeds/ROCitySeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion src/Seeds/ROCountrySeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion src/Seeds/ROProvinceSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion src/Seeds/ROSubDistrictSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 367340b

Please sign in to comment.