Update PostsController.php

I added a public function view which will allow the user to view the blog posts. 
I also included a condition for not being able to find a post if it hasn't been created.