Skip to content

Commit ee7b1a8

Browse files
authored
Remove array syntax from Events docs (#9128)
By default, Laravel will use the `handle` method on an event. To remove confusion - when somebody would change the `handle` and now `make:listener` does not work anymore out of the box - it would be better to not have the customisation in the docs.
1 parent a70dab0 commit ee7b1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Typically, events should be registered via the `EventServiceProvider` `$listen`
8282
{
8383
Event::listen(
8484
PodcastProcessed::class,
85-
[SendPodcastNotification::class, 'handle']
85+
SendPodcastNotification::class,
8686
);
8787

8888
Event::listen(function (PodcastProcessed $event) {

0 commit comments

Comments
 (0)