示例#1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     post::find($id)->delete();
     return redirect(url('artikel'));
 }
示例#2
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $post = post::find($id);
     return view('player.post.group_topic', ['post' => $post]);
 }