Update tenants based on Session value

Hi, I'm trying to update my tenants based on a value that's been put on my Session. Here's an example:
public function getTenants(Panel $panel): Collection
{
return Project::where('client_id', Session::get('active-client'))->get();
}
public function getTenants(Panel $panel): Collection
{
return Project::where('client_id', Session::get('active-client'))->get();
}
I'm updating that value based on a select element being handled by Livewire. Short example:
public function change()
{
Session::put('active-client', $this->activeClient);
}
public function change()
{
Session::put('active-client', $this->activeClient);
}
However, I find I can't reactively update the tenant list. Any ideas?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server