Level 70
@rid3638 Did you pass the $scholarships to the view properly? I mean, can you access the $scholarships from the view page?
2 likes
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I am using laravel 11. This is my code:
$scholarships = Scholarship::with([
'creator',
'fundingTypes',
'providers',
'subjects',
'countries',
'educationLevels',
])
->latest()
->paginate(10)
->withQueryString();
This is how I show the pagination:
{{ $scholarships->links() }}
Any idea why?
@rid3638 It seems there is no issue with your code.
Maybe you can clear the cache:
php artisan route:clear && php artisan view:clear && php artisan cache:clear
⚠️ And double confirm that you have enough records. As you mentioned that, ->paginate(10) which means if you have less than 10 records, you may don't see the pagination* link.
Please or to participate in this conversation.