Skip to content

Commit

Permalink
Bug Fix Update Visi & Misi Backend
Browse files Browse the repository at this point in the history
  • Loading branch information
andes2912 committed Mar 28, 2022
1 parent bc17303 commit be12639
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ public function update(VisidanMisiRequest $request, $id)
$image->storeAs($tujuan_upload,$nama_img);
}

$visimisi = new Visimisi();
$visimisi = Visimisi::find($id);
$visimisi->visi = $request->visi;
$visimisi->misi = $request->misi;
$visimisi->image = $nama_img;
$visimisi->image = $nama_img ?? $visimisi->image;
$visimisi->update();

Session::flash('success','Visi dan Misi Berhasil diupdate!');
Expand Down

0 comments on commit be12639

Please sign in to comment.