/** * Remove the specified resource from storage. * * @param \App\Topic $topic * @return \Illuminate\Routing\Redirector */ public function destroy(Topic $topic) { $topic->delete(); return Redirect::route('topics.index'); }
/** * Delete an existing topic * * @param Topic $topic * @return \Illuminate\Http\RedirectResponse */ public function destroy(Topic $topic) { $topic->delete(); return redirect()->to('topics'); }