why paginate() show only next and previous with out page numbers
Hello friends my regular pagination method ->paginate() show only next and previus buttons without page number
using laravel 11 + livewire 3
<?php
namespace App\Livewire\Admin\Task;
use Livewire\Component;
use App\Traits\HasModal;
use Livewire\WithPagination;
class TaskIndex extends Component
{
use HasModal, WithPagination;
#[Computed]
public function tasks()
{
return Task::select(['id', 'project_id', 'title', 'priority', 'created_at'])->with('project','project.images')->latest()->paginate(10);
}
public function render()
{
return view('livewire.admin.task.task-index');
}
}
That behaviour should only be happening below the sm breakpoint unless the default pagination Blade template has been modified; what is the viewport width?
@tykus Like normal, except section of pagination showing 2 buttons previous and next only not buttons for number yet- this section full screen width alos
@Respect yes but sm:hidden means this is hidden above the sm breakpoint, so there should be another div with markup to be displayed above sm width, e.g. hidden by default and sm:flex-1 to be seen above sm width.
@Respect somethings not adding up here... there should be nothing being displayed at the larger breakpoints, but you're still seeing the links? Are the pagination views published (resources/views/vendor/pagination) and have been modified? Is Tailwind compiling based on the correct content? Stumped...
@tykus really it's very wired i think i will make full debug on my tailwind code to see where is the problem and your note about sm size i think this will be the key for fix it --- will post the result after i finish debug (really thanks for your time)