1
내가 오류를 정의되지 않은 메서드를 분명히 \ 데이터베이스에Laravel 5 - 정의되지 않은 메서드를 분명히 데이터베이스에 전화 웅변 컬렉션 :: 페이지를 매기는()
나는이 일을 봤는데 :전화 데 \ 웅변 \ 컬렉션 :: 페이지를 매기는()
public function index()
{
$articles = Article::latest('published_at')->published()->get()->paginate(5);
$articlesLink = $articles->render();
return view('articles.index', compact('articles', 'articlesLink'));
}
감사합니다. get()을 제거했을 때 완벽하게 작동합니다. –