Update PostsController.php

I reworked the edit function and deleted the 'delete function'