/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { Todolist::destroy($id); return \Redirect::route('lists.index'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Todolist::destroy($id); return \Redirect::route('lists.index')->with('message', 'The list has been deleted!'); }