postsController to manage posts for blog.dev project. Extends \BaseController.