Hello everyone, I manage to make a pagination with every 3 results and write the following code.
$news = News::paginate(3)->sortByDesc('updated_at')->toArray(); //write in controller
{{ $news->render() }} //write in the blade
However it ends up with error and if I only type the code in first line(controller) there won't be error with the page but it can only show with 3 results. Therefore, I think it is the problem of my code on second line! Can anyone give me some suggestion? Thanks for reading.