App\Http\Controllers\BlogController::destroy PHP Method

destroy() public method

Remove the specified resource from storage.
public destroy ( integer $id ) : Illuminate\Http\Response
$id integer
return Illuminate\Http\Response
    public function destroy($id)
    {
        $this->blog->destroy($id);
        return back()->with('ok', 'Delete post successfully.');
    }