Skip to content

Your own People::heldBy()

aparté asks the app who holds a conversation through People::heldBy(). The desk answers it for you, from its own table. You do not need to call it.

If your app calls People::heldBy() itself, your call replaces the desk’s: Laravel starts your app’s providers after the packages’. The desk’s takeovers would then no longer stop the assistant. The desk warns you about it when someone takes a conversation over.

To keep your own logic and the desk’s, ask the desk inside yours, and tell the desk not to register its own:

config/aparte-desk.php
'held_by' => false,
// AppServiceProvider::boot()
use Aparte\FilamentDesk\Desk;
use Aparte\Laravel\People;
People::heldBy(fn (string $id) => Desk::holder($id) ?? $this->myOwnHolder($id));