Update PostsController.php

added the delete function