Skip to content

Update events.md #616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion events.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
git: ad340137755df077c5efe7d0a57e3579aa1e0ca2
git: b6423cc99296ad64a5f09ab1d9dab653de9366a2
---

# События (Events)
Expand Down Expand Up @@ -67,6 +67,12 @@ php artisan make:listener
__DIR__.'/../app/Domain/Orders/Listeners',
])

Вы можете выполнить поиск слушателей в нескольких похожих каталогах, используя символ `*` в качестве подстановочного знака:

->withEvents(discover: [
__DIR__.'/../app/Domain/*/Listeners',
])

Команда `event:list` может использоваться для вывода списка всех слушателей, зарегистрированных в вашем приложении:

```shell
Expand Down