Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vampiremr's avatar

Nova 4 pagination

Hi

Is anybody have full manual how to change template for default pagination in Nova? Many links in Google, but nothing helping

Issue - I need to move "per page select" to the bottom near pagination

0 likes
2 replies
LaryAI's avatar
Level 58

To customize the pagination template in Laravel Nova, you can publish the pagination view using the following command:

php artisan vendor:publish --tag=nova-pagination

This will create a new pagination.blade.php file in the resources/views/vendor/nova directory. You can then modify this file to customize the pagination template.

To move the "per page" select to the bottom of the pagination, you can modify the pagination.blade.php file as follows:

  1. Find the line that renders the "per page" select dropdown:
<div class="inline-flex items-center ml-3">
    <label for="perPage" class="mr-2">{{ __('Per Page') }}:</label>
    <select wire:model="perPage" id="perPage" class="form-control form-select">
        @foreach($perPageOptions as $option)
            <option value="{{ $option }}">{{ $option }}</option>
        @endforeach
    </select>
</div>
  1. Cut this code block and paste it after the line that renders the pagination links:
{{ $paginator->links('nova::pagination-links') }}

<div class="inline-flex items-center ml-3">
    <label for="perPage" class="mr-2">{{ __('Per Page') }}:</label>
    <select wire:model="perPage" id="perPage" class="form-control form-select">
        @foreach($perPageOptions as $option)
            <option value="{{ $option }}">{{ $option }}</option>
        @endforeach
    </select>
</div>

This will move the "per page" select to the bottom of the pagination links.

Note: If you're using Laravel Nova 3.x, you may need to modify the nova::pagination view instead of the nova::pagination.blade.php file.

vampiremr's avatar

AI not helped because after php artisan vendor:publish --tag=nova-pagination I see No publishable resources for tag [nova-pagination].

Please or to participate in this conversation.