public function index() { $total_comments = Comment::count(); $n = 5; $comments = Comment::skip($total_comments - 5)->take($n)->get(); return $comments; }