public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); $d->setExists('label', $data); $d->setExists('kegiatan_id', $data); $d->save(); }
public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); $d->nama = $data['nama']; $d->kota_id = $data['kota_id']; $d->save(); }
public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); $d->label = $data['label']; $d->group_nilai_id = $data['group_nilai_id']; $d->weight = $data['weight']; $d->save(); }
public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); $d->periode_id = $data['periode_id']; $d->label = $data['label']; $d->hari = $data['hari']; $d->deskripsi = $data['deskripsi']; $d->save(); }
public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); $d->gelombang_id = $data['gelombang_id']; $d->label = $data['label']; $d->jenis_kelas_id = $data['jenis_kelas_id']; $d->deskripsi = $data['deskripsi']; $d->save(); }
public static function addOrModify($data, $id = null) { $i = parent::addOrModify($data, $id); $i->nama = $data['nama']; $i->kota_id = $data['kota_id']; $i->alamat = $data['alamat']; $i->no_telp = $data['no_telp']; $i->save(); }
public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); $d->nama = $data['nama']; $d->password = \Hash::make($data['password']); $d->username = $data['username']; $d->email = $data['email']; $d->role_id = $data['role_id']; $d->save(); }
public static function addOrModify($data, $id = null) { $user = new User(); if ($id != null) { $user = User::find($id); } $user->nama = $data['nama']; $user->username = $data['username']; $user->email = $data['username']; $user->password = bcrypt($data['password']); $user->role_id = 2; $user->save(); $d = parent::addOrModify($data, $id); $d->id = User::orderBy('id', 'desc')->first()->id; $d->nip = $data['nip']; $d->instansi_id = $data['instansi_id']; $d->nuptk = $data['nuptk']; $d->alamat = $data['alamat']; $d->no_telp = $data['no_telp']; $d->save(); }
public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); }
public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); $d->populateData($data); $d->save(); }
public static function addOrModify($data, $id = null) { $d = parent::addOrModify($data, $id); $d->label = $data['label']; $d->save(); }