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

# 이벤트

> Laravel Copilot SDK가 발화하는 Laravel 이벤트를 로그 수집, 디버깅, 비동기 처리에 활용하는 방법을 설명합니다.

## Laravel 이벤트

[Events](https://github.com/invokable/laravel-copilot-sdk/tree/main/src/Events)의 이벤트 클래스를 곳곳에 배치하고 있으므로 로그나 디버깅에 활용할 수 있습니다.

[훅](/ko/packages/laravel-copilot-sdk/hooks)으로도 비슷한 것을 할 수 있지만, 훅이 없는 곳에도 배치할 수 있습니다.

```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
```

예를 들어 시간이 조금 걸리는 처리를 큐나 `defer`에 넘길 수 있습니다. 이 `Copilot::run()`의 결과는 직접 받을 수 없지만, 대신 `MessageSendAndWait` 이벤트의 리스너에서 받을 수 있습니다.

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

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

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

<Info>
  최신 정보는 [GitHub 저장소](https://github.com/invokable/laravel-copilot-sdk)를 참고하세요.
</Info>


## Related topics

- [Laravel Reverb](/ko/reverb.md)
- [이메일 인증(Email Verification)](/ko/verification.md)
- [Laravel Passkeys 초기 조사 (passkeys-server + @laravel/passkeys)](/ko/blog/passkeys-introduction.md)
- [스트리밍 이벤트](/ko/packages/laravel-copilot-sdk/streaming-events.md)
- [이벤트와 리스너](/ko/events.md)
