ImpactLab wrote a reply+100 XP
3w ago
@kianaassenheimer I have got this working in a round-about way with updateTableColumnState:
$this->record->assign($user, MemberPosition::ANALYST);
$component = livewire(MembersTable::class, ['record' => $this->record]);
$component->call('updateTableColumnState', 'position', (string)$user->id, MemberPosition::QUALITY_ASSURANCE->value);
// Assert change has persisted
$pivot = $this->record->members()->where('user_id', $user->id)->first()->pivot;
expect($pivot->position)->toBe(MemberPosition::QUALITY_ASSURANCE);
ImpactLab liked a comment+100 XP
5mos ago
@piljac1 Octane flushes the array cache for each new request / job: https://github.com/laravel/octane/blob/c9ea063a705411019f67501655c0f82960bd6822/src/Concerns/ProvidesDefaultConfigurationOptions.php#L51. Which makes the array driver handy for caching expensive operations under a purgeable key. If I don't need purging, I use once().