> ## Documentation Index
> Fetch the complete documentation index at: https://kawax.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# Events

> Beschreibt, wie Sie die vom Laravel Copilot SDK ausgelösten Laravel-Events für Logging, Debugging und asynchrone Verarbeitung nutzen.

## Laravel-Events

Da an vielen Stellen Event-Klassen aus [Events](https://github.com/invokable/laravel-copilot-sdk/tree/main/src/Events) ausgelöst werden, können Sie sie für Logging und Debugging nutzen.

Ähnliches lässt sich zwar auch mit [Hooks](/de/packages/laravel-copilot-sdk/hooks) erreichen, doch Events können auch an Stellen ausgelöst werden, an denen es keine Hooks gibt.

```text theme={null}
src/
├── Events/
│   ├── Client/
│   │   ├── ClientStarted.php
│   │   ├── ToolCall.php
│   │   └── PingPong.php
│   ├── JsonRpc/
│   │   ├── MessageReceived.php
│   │   ├── MessageSending.php
│   │   └── ResponseReceived.php
│   ├── Process/
│   │   └── ProcessStarted.php
│   └── Session/
│       ├── CreateSession.php
│       ├── MessageSend.php
│       ├── MessageSendAndWait.php
│       ├── SessionEventReceived.php
│       └── ResumeSession.php
```

So können Sie etwas zeitaufwendige Verarbeitung in eine Queue oder `defer` auslagern. Das Ergebnis von `Copilot::run()` kann dann zwar nicht direkt entgegengenommen werden, es lässt sich jedoch stattdessen über einen Listener für das Event `MessageSendAndWait` empfangen.

```php theme={null}
dispatch(fn() => Copilot::run(''));
```

```php theme={null}
use function Illuminate\Support\defer;

defer(fn() => Copilot::run(''));
```

<Info>
  Aktuelle Informationen finden Sie im [GitHub-Repository](https://github.com/invokable/laravel-copilot-sdk).
</Info>


## Related topics

- [Laravel Reverb](/de/reverb.md)
- [E-Mail-Verifizierung (Email Verification)](/de/verification.md)
- [Erste Analyse: Laravel Passkeys (passkeys-server + @laravel/passkeys)](/de/blog/passkeys-introduction.md)
- [Events und Listener](/de/events.md)
- [SessionEvent](/de/packages/laravel-copilot-sdk/session-event.md)
