Level 51
Are you sure you added livewire scripts at the bottom of the page?
i am trying to make paginator by livewire but the problem is the page parameter change when i click on page buttons but the new page doesn't load and no data change and here is my code
namespace App\Http\Livewire;
use App\Models\Hotel;
use Livewire\Component;
use Livewire\WithPagination;
class HotelLoad extends Component
{
use WithPagination;
protected $paginationTheme = 'bootstrap';
public function updatingName()
{
$this->resetPage();
}
public function render()
{
return view('livewire.hotel-load',[
'hotels' => Hotel::filter($this)->orderBy('id','DESC')->paginate(1)
]);
}
}
Please or to participate in this conversation.