/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { \App\Categoria::destroy($id); return redirect()->route('categoria.index'); }
public function destroy($id) { Categoria::destroy($id); return redirect('/categoria')->with('alert', ['message' => 'Categoria excluída com sucesso', 'type' => 'success', 'before' => null, 'after' => null]); }