app/Http/Controllers/Admin/ListVisiMisiController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $title = $request->input('title');
        $desc = $request->input('desc');
        ListVisiMisi::find($id)->update([
            'visimisi_list_title' => $title,
            'visimisi_list_description' => $desc,
        ]);
        return redirect()->to("adminpages/visimisilist");
    }
public function update ( Request $ request , $ id ) { $ title = $ request -> input ( 'title' ) ; $ desc = $ request -> input ( 'desc' ) ; ListVisiMisi :: find ( $ id ) -> update ( [ 'visimisi_list_title' => $ title , 'visimisi_list_description' => $ desc , ] ) ; return redirect ( ) -> to ( " adminpages/visimisilist " ) ; }
Update the specified resource in storage.
Update the specified resource in storage .