/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update(Pc_data $pd, Pc_mants $pm) { $input = array_except(Input::all(), array('_method', '_token')); $pm->update($input); $pd = $pd->slug; return Redirect::route('pc_datas.pc_mants.index', compact('pd'))->with('message', 'Dati aggiornati con successo'); }