Use this:
$Prontuarios = Prontuarios::paginate(15);
I just tried, same result.
Reached said:
Use this:
$Prontuarios = Prontuarios::paginate(15);
Are you using Blade templating for your views?
Yes, but I'm having this problem still on the controller, by using print_r or passing the variable to the view it's the same.
Reached said:
Are you using Blade templating for your views?
I suspect it is not actually the same, since the error you are experiencing does not sound like laravel stuff?
Have you tried var dumping or doing dd($variable)?
I mean I had the same result. Just tried this, and I had the same result again... Firefox's memory usage keeps increasing until it crashes.
$Prontuarios = Prontuarios::paginate(15);
dd($Prontuarios);
Reached said:
I suspect it is not actually the same, since the error you are experiencing does not sound like laravel stuff?
Have you tried var dumping or doing dd($variable)?
print_r($paginator->links()); to print_r($Prontuarios->links());
Or in your view file {{$Prontuarios->links()}}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community