Update ArticlesController.php

adding lastposts function in article