App\Http\Controllers\CommentController::destroy PHP Méthode

destroy() public méthode

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