I have the following function inside the controller
public function home()
{
$igrejas = Igreja::paginate(3);
$igrejas->setPath('igrejas');
return view('admin/igrejas/home')->with('igrejas', $igrejas);
}
I need to be returned beyond pagination, by creation order, that the last page will appear on the first page. As the system is in the last pages the last records, I need the reverse.