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

destroy() public méthode

Remove the specified resource from storage.
public destroy ( integer $id ) : Response
$id integer
Résultat Dingo\Api\Http\Response
    public function destroy($id)
    {
        //
        $comment = Comment::find($id);
        $comment->delete();
        return Redirect::to('admin/comments');
    }