Blade pagination component malfunction

Hey all, This is a strange problem. My view returns a simple pagination, when I'm not using simple pagination. Sometimes, it shows the regular pagination, other times it just returns the simple pagination. This is a really weird behaviour, I've tried different browsers, cache clears, browser caches, filament:upgrade, npm runs, whatever. Has anyone encountered this weird behaviour before? More info: I've built my own theme and am using the blade pagination component as follows:
<x-filament::pagination :paginator="$this->getActivities()" />
<x-filament::pagination :paginator="$this->getActivities()" />
The getActivities method is like:
public function getActivities(): LengthAwarePaginator
{
return Activity::causedBy(static::getRecord())->orderBy('id', 'desc')->paginate(15);
}
public function getActivities(): LengthAwarePaginator
{
return Activity::causedBy(static::getRecord())->orderBy('id', 'desc')->paginate(15);
}
The blade view is attached (portuguese locale). Thank you!
No description
1 Reply
Diogo Pinto
Diogo PintoOP13mo ago
There you go, restarting today session and it's good... but in a few minutes it will break.
No description

Did you find this page helpful?