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();
    }


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);
    }


However, I find I can't reactively update the tenant list. Any ideas?
Was this page helpful?