Esempio n. 1
0
 /**
  * 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');
 }
Esempio n. 2
0
 /**
  * Delete an existing topic
  *
  * @param Topic $topic
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy(Topic $topic)
 {
     $topic->delete();
     return redirect()->to('topics');
 }