destroy() 공개 메소드

Destroy a post.
public destroy ( $id )
$id
예제 #1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return \Illuminate\Http\Response
  */
 public function destroy($id)
 {
     $this->blog->destroy($id);
     return back()->with('ok', 'Delete post successfully.');
 }