diff --git a/.idea/dictionaries/tiso.xml b/.idea/dictionaries/tiso.xml new file mode 100644 index 0000000000000000000000000000000000000000..19dd57c37f5ae7fdcc1f6e4ab94e78e6a87833f8 --- /dev/null +++ b/.idea/dictionaries/tiso.xml @@ -0,0 +1,8 @@ +<component name="ProjectDictionaryState"> + <dictionary name="tiso"> + <words> + <w>keluarga</w> + <w>penduduk</w> + </words> + </dictionary> +</component> \ No newline at end of file diff --git a/easyk/app/Http/Controllers/KTPController.php b/easyk/app/Http/Controllers/KTPController.php index 8b712b5e3d085459fbf2e1f370a1218c4878bada..27a58d4a2ed341b75c076b143dbbc5507c6f55bc 100644 --- a/easyk/app/Http/Controllers/KTPController.php +++ b/easyk/app/Http/Controllers/KTPController.php @@ -9,6 +9,7 @@ use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Redirect; use App\Ktp; +use App\Log; use App\Http\Requests; @@ -51,6 +52,15 @@ class KTPController extends Controller $notifController = new NotifikasiController; $notifController->create($ktp, 'warga', $request); + // Add Error Handling Here + // ... + + $log = new Log(); + $log->id_penduduk = Input::get('nik'); + $log->tipe = "createKtp"; + $log->sumber = "warga"; + $log->save(); + return redirect('/'); } } diff --git a/easyk/app/Http/Controllers/LogController.php b/easyk/app/Http/Controllers/LogController.php new file mode 100644 index 0000000000000000000000000000000000000000..ee85abc54317334b31d63c57576229c821100209 --- /dev/null +++ b/easyk/app/Http/Controllers/LogController.php @@ -0,0 +1,10 @@ +<?php + +namespace App\Http\Controllers; + +use App\Http\Requests; +use Illuminate\Http\Request; + +class LogController extends Controller { + +} diff --git a/easyk/app/Http/routes.php b/easyk/app/Http/routes.php index 5afbd2bd76be05ab63db457b947e6f10ae9093e4..75174f9c83c6717000b9f2df43bb0653fc64b957 100755 --- a/easyk/app/Http/routes.php +++ b/easyk/app/Http/routes.php @@ -9,7 +9,6 @@ use Illuminate\Support\Facades\Auth; Route::auth(); - Route::get('/', function(Request $request) { if(Auth::check()) { $user = $request->user(); @@ -48,8 +47,8 @@ Route::get('/ktp', function(Request $request) { } }); -Route::post('/ktp', 'KTPController@create'); +Route::post('/ktp', 'KTPController@create'); Route::get('/info/{id}', function($id) { @@ -74,14 +73,18 @@ Route::get('/progress', function(Request $request) { } }); + Route::get('/register', function() { return view('auth.register'); }); + Route::get('/home', 'HomeController@index'); + Route::get('/home', 'HomeController@index'); + Route::post('/persetujuan', function(Request $request) { $setuju = $request->isSetuju; $id_ktp = $request->id_ktp; @@ -131,9 +134,20 @@ Route::post('/persetujuan', function(Request $request) { +/************************************************************************* + * Api Buat Kelompok Lain + */ +Route::post('/api/nikah', function(Request $request) { + +}); + + + + + function createStatuses(Request $request) { $user = Auth::user(); $notifications = DB::table('notifikasi')->where('tujuan', $user->tipe)->where('id_tujuan', $user->id)->where('isSetuju', -1)->get(); return $notifications; -} \ No newline at end of file +} diff --git a/easyk/app/Log.php b/easyk/app/Log.php new file mode 100644 index 0000000000000000000000000000000000000000..a7bc38afe1991650ed164abae23ed064f9b6bbc2 --- /dev/null +++ b/easyk/app/Log.php @@ -0,0 +1,15 @@ +<?php + +namespace App; + +use Illuminate\Database\Eloquent\Model; + +class Log extends Model +{ + protected $table = 'log'; + public $timestamps = false; + + public function penduduk() { + return $this->belongsTo('App\Penduduk'); + } +} diff --git a/easyk/app/Penduduk.php b/easyk/app/Penduduk.php index 22a9b98cd9d7ee73f812ae8c13c6cbe2ef095a30..970815932b1b85f52bc81355183bbd0c4af47695 100755 --- a/easyk/app/Penduduk.php +++ b/easyk/app/Penduduk.php @@ -13,4 +13,8 @@ class Penduduk extends Model public function keluarga() { return $this->belongsTo('App\Keluarga', 'id_keluarga'); } -} + + public function log() { + return $this->hasMany('App\Log'); + } +} \ No newline at end of file diff --git a/easyk/app/User.php b/easyk/app/User.php index c6bbf184da3182b8b276d8eb3c55ab89d92e791e..0cf2dbe5b5bfb3c72a6c9fa254efeb9b088d4bab 100755 --- a/easyk/app/User.php +++ b/easyk/app/User.php @@ -14,5 +14,4 @@ class User extends Authenticatable protected $hidden = [ 'password', 'remember_token', ]; - } diff --git a/easyk/database/migrations/2016_03_30_191405_create_database_core.php b/easyk/database/migrations/2016_03_30_191405_create_database_core.php index 91607786b8921bbb822a8ca694c2820dc2f86d6b..16a3610eed92394e8428b146b67bfdf7dff9693b 100755 --- a/easyk/database/migrations/2016_03_30_191405_create_database_core.php +++ b/easyk/database/migrations/2016_03_30_191405_create_database_core.php @@ -5,11 +5,6 @@ use Illuminate\Database\Migrations\Migration; class CreateDatabaseCore extends Migration { - /** - * Run the migrations. - * - * @return void - */ public function up() { @@ -19,8 +14,6 @@ class CreateDatabaseCore extends Migration $table->string('nama', 50); $table->string('alamat_kantor', 255); $table->string('id_pengurus', 16); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); $table->smallInteger('status'); $table->primary('id'); @@ -34,12 +27,10 @@ class CreateDatabaseCore extends Migration $table->string('alamat_kantor', 255); $table->string('id_pengurus', 16); $table->integer('id_provinsi'); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); $table->smallInteger('status'); $table->primary('id'); - $table->foreign('id_provinsi')->references('id')->on('provinsi'); + $table->foreign('id_provinsi')->references('id')->on('provinsi')->onDelete('cascade'); }); } @@ -50,12 +41,10 @@ class CreateDatabaseCore extends Migration $table->string('alamat_kantor', 255); $table->string('id_pengurus', 16); $table->integer('id_kota'); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); $table->smallInteger('status'); $table->primary('id'); - $table->foreign('id_kota')->references('id')->on('kota'); + $table->foreign('id_kota')->references('id')->on('kota')->onDelete('cascade'); }); } @@ -66,12 +55,10 @@ class CreateDatabaseCore extends Migration $table->string('alamat_kantor', 255); $table->string('id_pengurus', 16); $table->integer('id_kecamatan'); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); $table->smallInteger('status'); $table->primary('id'); - $table->foreign('id_kecamatan')->references('id')->on('kecamatan'); + $table->foreign('id_kecamatan')->references('id')->on('kecamatan')->onDelete('cascade'); }); } @@ -82,12 +69,10 @@ class CreateDatabaseCore extends Migration $table->string('alamat_kantor', 255); $table->string('id_pengurus', 16); $table->integer('id_kelurahan'); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); $table->smallInteger('status'); $table->primary('id'); - $table->foreign('id_kelurahan')->references('id')->on('kelurahan'); + $table->foreign('id_kelurahan')->references('id')->on('kelurahan')->onDelete('cascade'); }); } @@ -98,12 +83,10 @@ class CreateDatabaseCore extends Migration $table->string('alamat_kantor', 255); $table->string('id_pengurus', 16); $table->integer('id_rw'); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); $table->smallInteger('status'); $table->primary('id'); - $table->foreign('id_rw')->references('id')->on('rw'); + $table->foreign('id_rw')->references('id')->on('rw')->onDelete('cascade'); }); } @@ -112,11 +95,10 @@ class CreateDatabaseCore extends Migration $table->string('id', 16); $table->string('alamat', 255); $table->integer('id_rt'); - $table->dateTime('created_at')->default(DB::raw('NOW()')); $table->smallInteger('status'); $table->primary('id'); - $table->foreign('id_rt')->references('id')->on('rt'); + $table->foreign('id_rt')->references('id')->on('rt')->onDelete('cascade'); }); } @@ -140,81 +122,17 @@ class CreateDatabaseCore extends Migration $table->string('pendidikan', 50)->nullable(); $table->string('id_izin_tetap', 20)->nullable(); $table->string('id_passport', 16)->nullable(); - $table->dateTime('created_at')->default(DB::raw('NOW()')); + $table->timestamp('created_at')->useCurrent(); $table->smallInteger('status'); $table->primary('id'); $table->foreign('tempat_lahir')->references('id')->on('kota'); - $table->foreign('id_ayah')->references('id')->on('penduduk'); - $table->foreign('id_ibu')->references('id')->on('penduduk'); - $table->foreign('id_keluarga')->references('id')->on('keluarga'); + $table->foreign('id_ayah')->references('id')->on('penduduk')->onDelete('cascade'); + $table->foreign('id_ibu')->references('id')->on('penduduk')->onDelete('cascade'); + $table->foreign('id_keluarga')->references('id')->on('keluarga')->onDelete('cascade'); }); } - if (!Schema::hasTable('rumpun')) { - Schema::create('rumpun', function (Blueprint $table) { - $table->string('id', 20); - $table->string('nama', 100); - $table->string('nomor_urut', 25); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); - $table->smallInteger('status'); - - $table->primary('id'); - }); - } - - if (!Schema::hasTable('jabatan')) { - Schema::create('jabatan', function (Blueprint $table) { - $table->string('id'); - $table->string('id_rumpun', 25); - $table->string('nama', 100); - $table->enum('kualifikasi', array('Pendidikan', 'Keahlian')); - $table->string('keterangan', 255); - $table->string('kode', 25); - $table->integer('nilai'); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); - $table->smallInteger('status')->nullable(); - - $table->primary('id'); - $table->foreign('id_rumpun')->references('id')->on('rumpun'); - }); - } - - if (!Schema::hasTable('skpd')) { - Schema::create('skpd', function (Blueprint $table) { - $table->string('id', 20); - $table->string('id_jabatan', 20); - $table->string('nama', 50); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('updated_at')->nullable(); - $table->smallInteger('status'); - - $table->primary('id'); - $table->foreign('id_jabatan')->references('id')->on('jabatan'); - }); - } - - if (!Schema::hasTable('pegawai')) { - Schema::create('pegawai', function (Blueprint $table) { - $table->string('nip', 20); - $table->string('id_penduduk', 16); - $table->string('id_jabatan', 20); - $table->string('id_atasan', 20); - $table->string('nama', 25); - $table->string('golongan', 25); - $table->string('unit_kerja', 100); - $table->string('pangkat', 25); - $table->dateTime('created_at'); - $table->smallInteger('status'); - - $table->primary('nip'); - $table->foreign('id_penduduk')->references('id')->on('penduduk'); - $table->foreign('id_jabatan')->references('id')->on('jabatan'); - $table->foreign('id_atasan')->references('nip')->on('pegawai'); - }); - } if (!Schema::hasTable('users')) { Schema::create('users', function (Blueprint $table) { $table->increments('id'); @@ -222,11 +140,10 @@ class CreateDatabaseCore extends Migration $table->string('email'); $table->string('password'); $table->enum('tipe', array('warga', 'rt', 'rw', 'kelurahan', 'kecamatan')); - $table->dateTime('updated_at')->nullable(); - $table->dateTime('created_at')->default(DB::raw('NOW()')); + $table->timestamp('created_at')->useCurrent(); $table->string('remember_token'); - $table->foreign('nik')->references('id')->on('penduduk'); + $table->foreign('nik')->references('id')->on('penduduk')->onDelete('cascade'); }); } @@ -241,8 +158,8 @@ class CreateDatabaseCore extends Migration $table->string('pekerjaan'); $table->string('alasan_edit')->nullable(); $table->string('no_dokumen')->nullable(); - - $table->foreign('nik')->references('id')->on('penduduk'); + $table->timestamp('created_at')->useCurrent(); + $table->foreign('nik')->references('id')->on('penduduk')->onDelete('cascade'); }); } @@ -255,12 +172,25 @@ class CreateDatabaseCore extends Migration $table->enum('tujuan', array('warga', 'rt', 'rw', 'kelurahan', 'kecamatan')); $table->string('id_tujuan', 16); $table->integer('isSetuju')->default(0); - $table->dateTime('created_at')->default(DB::raw('NOW()')); - $table->dateTime('processed_at')->nullable(); + $table->timestamp('created_at')->useCurrent(); + $table->timestamp('processed_at')->nullable(); $table->foreign('id_sumber')->references('nik')->on('users'); $table->foreign('id_tujuan')->references('nik')->on('users'); - $table->foreign('id_ktp')->references('id')->on('ktp'); + $table->foreign('id_ktp')->references('id')->on('ktp')->onDelete('cascade'); + }); + } + + if (!Schema::hasTable('log')) { + Schema::create('log', function (Blueprint $table) { + $table->increments('id'); + $table->string('id_penduduk', 16); + $table->timestamp('created_at')->useCurrent(); + + $table->enum('tipe', array("createKtp", "createKk", "updateKtp", "updateKk")); + $table->enum('sumber', array("warga", "appKelahiran", "appPindahDatang", "appPernikahan")); + + $table->foreign('id_penduduk')->references('id')->on('penduduk')->onDelete('cascade'); }); } } @@ -268,20 +198,21 @@ class CreateDatabaseCore extends Migration public function down() { - Schema::drop('pegawai'); - Schema::drop('skpd'); - Schema::drop('jabatan'); - Schema::drop('rumpun'); - Schema::drop('penduduk'); - Schema::drop('keluarga'); - Schema::drop('rt'); - Schema::drop('rw'); - Schema::drop('kelurahan'); - Schema::drop('kecamatan'); - Schema::drop('kota'); - Schema::drop('provinsi'); - Schema::drop('notifikasi'); - Schema::drop('ktp'); - Schema::drop('users'); + DB::statement('SET FOREIGN_KEY_CHECKS = 0'); + Schema::dropIfExists('provinsi'); + Schema::dropIfExists('penduduk'); + Schema::dropIfExists('keluarga'); + Schema::dropIfExists('rt'); + Schema::dropIfExists('rw'); + Schema::dropIfExists('kelurahan'); + Schema::dropIfExists('kecamatan'); + Schema::dropIfExists('kota'); + Schema::dropIfExists('notifikasi'); + Schema::dropIfExists('ktp'); + Schema::dropIfExists('users'); + Schema::dropIfExists('log'); + DB::statement('SET FOREIGN_KEY_CHECKS = 1'); + + } } diff --git a/easyk/database/seeds/DatabaseSeeder.php b/easyk/database/seeds/DatabaseSeeder.php index ee362f725721adee18a83a1128e02ad364c7b10d..be31c5447070d52014c2ccea38ca69bdb3cbc9b6 100755 --- a/easyk/database/seeds/DatabaseSeeder.php +++ b/easyk/database/seeds/DatabaseSeeder.php @@ -16,9 +16,6 @@ class DatabaseSeeder extends Seeder $this->call('RtTableSeeder'); $this->call('KeluargaTableSeeder'); $this->call('PendudukTableSeeder'); - $this->call('RumpunTableSeeder'); - $this->call('JabatanTableSeeder'); - $this->call('SkpdTableSeeder'); $this->call('UserTableSeeder'); } } diff --git a/easyk/database/seeds/JabatanTableSeeder.php b/easyk/database/seeds/JabatanTableSeeder.php deleted file mode 100755 index 34bd8f145dc055f7a967ec69d89579287835d3bd..0000000000000000000000000000000000000000 --- a/easyk/database/seeds/JabatanTableSeeder.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Illuminate\Database\Seeder; - -class JabatanTableSeeder extends Seeder { - - public function run() - { - // Uncomment the below to wipe the table clean before populating - DB::table('jabatan')->delete(); - - $jabatan = array( - ['id' => 1, 'id_rumpun' => '1', 'nama' => 'Busiri', 'kualifikasi' => 'Pendidikan', 'keterangan' => 'haha', 'kode' => 'jkjk','nilai' => 10, 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], - ); - - // Uncomment the below to run the seeder - DB::table('jabatan')->insert($jabatan); - } - -} \ No newline at end of file diff --git a/easyk/database/seeds/KecamatanTableSeeder.php b/easyk/database/seeds/KecamatanTableSeeder.php index b3bfb18ccb39b15f0db2ead4986a64bdabd312f3..6e6919aaf45a97ce9121d2721a244e1b9e3de2a5 100755 --- a/easyk/database/seeds/KecamatanTableSeeder.php +++ b/easyk/database/seeds/KecamatanTableSeeder.php @@ -10,7 +10,7 @@ class KecamatanTableSeeder extends Seeder { DB::table('kecamatan')->delete(); $kecamatan = array( - ['id' => 1, 'nama' => 'Coblong', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '99999', 'id_kota' => 1, 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], + ['id' => 1, 'nama' => 'Coblong', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '99999', 'id_kota' => 1, 'status' => 1], ); // Uncomment the below to run the seeder diff --git a/easyk/database/seeds/KeluargaTableSeeder.php b/easyk/database/seeds/KeluargaTableSeeder.php index 8f4468348056eb040b6e3fd6f7647cec3f7c0bdd..1800f42980aabd6062b682c05a9c26f4e769c591 100755 --- a/easyk/database/seeds/KeluargaTableSeeder.php +++ b/easyk/database/seeds/KeluargaTableSeeder.php @@ -10,7 +10,7 @@ class KeluargaTableSeeder extends Seeder { DB::table('keluarga')->delete(); $keluarga = array( - ['id' => '1', 'alamat' => 'Bandung', 'id_rt' => 1, 'created_at' => new DateTime, 'status' => 1], + ['id' => '1', 'alamat' => 'Bandung', 'id_rt' => 1, 'status' => 1], ); // Uncomment the below to run the seeder diff --git a/easyk/database/seeds/KelurahanTableSeeder.php b/easyk/database/seeds/KelurahanTableSeeder.php index bc297afa557c96c415d9a608139c9de446a5e930..8927ff3cb0835e1bed637c31fe41f12c0742db15 100755 --- a/easyk/database/seeds/KelurahanTableSeeder.php +++ b/easyk/database/seeds/KelurahanTableSeeder.php @@ -10,7 +10,7 @@ class KelurahanTableSeeder extends Seeder { DB::table('kelurahan')->delete(); $kelurahan = array( - ['id' => 1, 'nama' => 'Dago', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '88888', 'id_kecamatan' => 1, 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], + ['id' => 1, 'nama' => 'Dago', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '88888', 'id_kecamatan' => 1, 'status' => 1], ); // Uncomment the below to run the seeder diff --git a/easyk/database/seeds/KotaTableSeeder.php b/easyk/database/seeds/KotaTableSeeder.php index a24346f96bd400b5d63881e54ed5c4ca83012d45..52232ce24e3f3067a0c05d2da17252343b5b55c0 100755 --- a/easyk/database/seeds/KotaTableSeeder.php +++ b/easyk/database/seeds/KotaTableSeeder.php @@ -10,7 +10,7 @@ class KotaTableSeeder extends Seeder { DB::table('kota')->delete(); $kota = array( - ['id' => 1, 'nama' => 'Bandung', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '99999', 'id_provinsi' => 1, 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], + ['id' => 1, 'nama' => 'Bandung', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '99999', 'id_provinsi' => 1, 'status' => 1], ); // Uncomment the below to run the seeder diff --git a/easyk/database/seeds/ProvinsiTableSeeder.php b/easyk/database/seeds/ProvinsiTableSeeder.php index c84d29664ded4d360333755cf520f15fe78d5a2d..2679d1f665b24b584a0433eca768ec86425a07e7 100755 --- a/easyk/database/seeds/ProvinsiTableSeeder.php +++ b/easyk/database/seeds/ProvinsiTableSeeder.php @@ -9,7 +9,7 @@ class ProvinsiTableSeeder extends Seeder { DB::table('provinsi')->delete(); $provinsi = array( - ['id' => 1, 'nama' => 'Jawa Barat', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '99999', 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], + ['id' => 1, 'nama' => 'Jawa Barat', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '99999', 'status' => 1], ); DB::table('provinsi')->insert($provinsi); diff --git a/easyk/database/seeds/RtTableSeeder.php b/easyk/database/seeds/RtTableSeeder.php index 7d5924e9b36b95e53f408f9e9f351539a1c277bc..f3da24c8c4117269ce900f36a0dbf287d7a4bd8b 100755 --- a/easyk/database/seeds/RtTableSeeder.php +++ b/easyk/database/seeds/RtTableSeeder.php @@ -10,7 +10,7 @@ class RtTableSeeder extends Seeder { DB::table('rt')->delete(); $rt = array( - ['id' => 1, 'nama' => '5', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '66666', 'id_rw' => 1, 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], + ['id' => 1, 'nama' => '5', 'alamat_kantor' => 'Bandung', 'id_pengurus' => '66666', 'id_rw' => 1, 'status' => 1], ); // Uncomment the below to run the seeder diff --git a/easyk/database/seeds/RumpunTableSeeder.php b/easyk/database/seeds/RumpunTableSeeder.php deleted file mode 100755 index 5352069b0d20d2c07e2a498e9f4274c008842b84..0000000000000000000000000000000000000000 --- a/easyk/database/seeds/RumpunTableSeeder.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Illuminate\Database\Seeder; - -class RumpunTableSeeder extends Seeder { - - public function run() - { - // Uncomment the below to wipe the table clean before populating - DB::table('rumpun')->delete(); - - $rumpun = array( - ['id' => '1', 'nama' => 'Agung', 'nomor_urut' => '1', 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], - ); - - // Uncomment the below to run the seeder - DB::table('rumpun')->insert($rumpun); - } - -} \ No newline at end of file diff --git a/easyk/database/seeds/RwTableSeeder.php b/easyk/database/seeds/RwTableSeeder.php index 99a1b4b5cb687ef4c398b59b870b65deb8c94a36..47f446bce808bee2215dec4876e7599c77d24e32 100755 --- a/easyk/database/seeds/RwTableSeeder.php +++ b/easyk/database/seeds/RwTableSeeder.php @@ -10,7 +10,7 @@ class RwTableSeeder extends Seeder { DB::table('rw')->delete(); $rw = array( - ['id' => 1, 'nama' => '5', 'alamat_kantor' => 'Padang', 'id_pengurus' => '77777', 'id_kelurahan' => 1, 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], + ['id' => 1, 'nama' => '5', 'alamat_kantor' => 'Padang', 'id_pengurus' => '77777', 'id_kelurahan' => 1, 'status' => 1], ); // Uncomment the below to run the seeder diff --git a/easyk/database/seeds/SkpdTableSeeder.php b/easyk/database/seeds/SkpdTableSeeder.php deleted file mode 100755 index 0ad22f65e29c9e83a9b9658ca6705585ec27e463..0000000000000000000000000000000000000000 --- a/easyk/database/seeds/SkpdTableSeeder.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php - -use Illuminate\Database\Seeder; - -class SkpdTableSeeder extends Seeder { - - public function run() - { - // Uncomment the below to wipe the table clean before populating - DB::table('skpd')->delete(); - - $skpd = array( - ['id' => '1', 'id_jabatan' => '1', 'nama' => 'ASU', 'created_at' => new DateTime, 'updated_at' => new DateTime, 'status' => 1], - ); - - // Uncomment the below to run the seeder - DB::table('skpd')->insert($skpd); - } - -} \ No newline at end of file