/** * Update the specified resource in storage. * * @param int $id * @return Response */ public function update($id, Request $request) { // $categoria = Categoria::whereId($id)->first(); $categoria->designacao = $request->get('designacao'); $categoria->descricao = $request->get('descricao'); $categoria->save(); return redirect('categoria/'); }