diff --git a/database/seeds/DasDataDesaTableSeeder.php b/database/seeds/DasDataDesaTableSeeder.php index d1fc9c87f..042129691 100755 --- a/database/seeds/DasDataDesaTableSeeder.php +++ b/database/seeds/DasDataDesaTableSeeder.php @@ -13,138 +13,139 @@ class DasDataDesaTableSeeder extends Seeder public function run() { + $kecamatan_id = Config::get('app.default_profile'); \DB::table('das_data_desa')->delete(); \DB::table('das_data_desa')->insert(array ( 0 => array ( - 'desa_id' => '53.06.13.2001', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2001', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Bedalewun', ), 1 => array ( - 'desa_id' => '53.06.13.2002', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2002', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Lebanuba', ), 2 => array ( - 'desa_id' => '53.06.13.2003', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2003', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Rianwale', ), 3 => array ( - 'desa_id' => '53.06.13.2004', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2004', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Bungalawan', ), 4 => array ( - 'desa_id' => '53.06.13.2005', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2005', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Lamawolo', ), 5 => array ( - 'desa_id' => '53.06.13.2006', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2006', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Helanlangowuyo', ), 6 => array ( - 'desa_id' => '53.06.13.2007', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2007', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Lewopao', ), 7 => array ( - 'desa_id' => '53.06.13.2008', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2008', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Nelereren', ), 8 => array ( - 'desa_id' => '53.06.13.2009', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2009', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Boleng', ), 9 => array ( - 'desa_id' => '53.06.13.2010', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2010', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Neleblolong', ), 10 => array ( - 'desa_id' => '53.06.13.2011', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2011', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Duablolong', ), 11 => array ( - 'desa_id' => '53.06.13.2012', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2012', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Lewokeleng', ), 12 => array ( - 'desa_id' => '53.06.13.2013', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2013', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Nelelamawangi', ), 13 => array ( - 'desa_id' => '53.06.13.2014', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2014', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Harubala', ), 14 => array ( - 'desa_id' => '53.06.13.2015', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2015', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Nelelamadike', ), 15 => array ( - 'desa_id' => '53.06.13.2016', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2016', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Lamabayung', ), 16 => array ( - 'desa_id' => '53.06.13.2017', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2017', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Lewat', ), 17 => array ( - 'desa_id' => '53.06.13.2018', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2018', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Dokeng', ), 18 => array ( - 'desa_id' => '53.06.13.2019', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2019', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Bayuntaa', ), 19 => array ( - 'desa_id' => '53.06.13.2020', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2020', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Nobo', ), 20 => array ( - 'desa_id' => '53.06.13.2021', - 'kecamatan_id' => '53.06.13', + 'desa_id' => $kecamatan_id . '.2021', + 'kecamatan_id' => $kecamatan_id, 'nama' => 'Nelelamawangi Dua', ), )); } -} \ No newline at end of file +} diff --git a/database/seeds/DasDataUmumTableSeeder.php b/database/seeds/DasDataUmumTableSeeder.php index 4e5970d38..a7c34894f 100755 --- a/database/seeds/DasDataUmumTableSeeder.php +++ b/database/seeds/DasDataUmumTableSeeder.php @@ -13,7 +13,6 @@ class DasDataUmumTableSeeder extends Seeder public function run() { - \DB::table('das_data_umum')->delete(); \DB::table('das_data_umum')->insert(array ( @@ -21,7 +20,7 @@ public function run() array ( 'id' => 1, 'profil_id' => 1, - 'kecamatan_id' => '53.06.13', + 'kecamatan_id' => Config::get('app.default_profile'), 'tipologi' => 'Kecamatan maju namun terpencil.', 'ketinggian' => 1, 'luas_wilayah' => 0.0, @@ -54,4 +53,4 @@ public function run() } -} \ No newline at end of file +} diff --git a/database/seeds/DasProfilTableSeeder.php b/database/seeds/DasProfilTableSeeder.php index 04eed1c16..cd7cd2b4d 100644 --- a/database/seeds/DasProfilTableSeeder.php +++ b/database/seeds/DasProfilTableSeeder.php @@ -11,15 +11,17 @@ class DasProfilTableSeeder extends Seeder */ public function run() { + $kecamatan_id = Config::get('app.default_profile'); + \DB::table('das_profil')->delete(); \DB::table('das_profil')->insert(array ( 0 => array ( 'id' => 1, - 'provinsi_id' => '53', - 'kabupaten_id' => '53.06', - 'kecamatan_id' => '53.06.13', + 'provinsi_id' => substr($kecamatan_id, 0, 2), + 'kabupaten_id' => substr($kecamatan_id, 0, 5), + 'kecamatan_id' => $kecamatan_id, 'alamat' => 'Jl. Koperasi No. 1, Kab Lombok Barat, Provinsi Nusa Tenggara Barat', 'kode_pos' => '83653', 'telepon' => '021-2345234',