app/Http/Controllers/ComicController.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)
    {   
        $data = $request->all();
        $comic = Comic::find($id);
        $comic->update($data); 
        return redirect()->route('comics.show', $comic);
    }
public function update ( Request $ request , $ id ) { $ data = $ request -> all ( ) ; $ comic = Comic :: find ( $ id ) ; $ comic -> update ( $ data ) ; return redirect ( ) -> route ( 'comics.show' , $ comic ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
// leggo i dati provenienti dal form // seleziona la riga della tabella da modificare // fanno riferimento i dati fillabili