whats up ? I have a little problem with Laravel Paginator.
I built the function using order by and paginator, but I\'m getting the error message \"Call to undefined
You are overriding the $premios variable in the foreach. Use it as singular form in the foreach:
$premios
foreach
@foreach($premios as $premio) <span class="tituloPremio">{{$premio->titulo}}</span> <span class="dataPremio">{{$premio->data}}</span> @endforeach {{ $premios->links() }}