자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public function index() { $total_comments = Comment::count(); $n = 5; $comments = Comment::skip($total_comments - 5)->take($n)->get(); return $comments; }