app/Http/Controllers/LaporanController.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(LaporanRequest $request, Laporan $laporan)
    {
        $laporan->update($request->all());
        return redirect('/laporan')->with('sukses', 'Laporan berhasi diperbarui.');
    }
public function update ( LaporanRequest $ request , Laporan $ laporan ) { $ laporan -> update ( $ request -> all ( ) ) ; return redirect ( '/laporan' ) -> with ( 'sukses' , 'Laporan berhasi diperbarui.' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .