Update PostsController.php

Fix a little mistake. Function name on line 74 is updateAction.