Replies: 1 comment 2 replies
-
One thing I can thing of is a PR into Laravel where you can set the method that is looked for, so we could add |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Laravel 11, listeners are automatically discovered (https://laravel.com/docs/11.x/events#event-discovery). However I suspect most actions are not in the
Listeners
folder so won't be discovered and you can't aim the discovery at theActions
folder because it only looks for ahandle
method with an event typehinted. Many of my actions use theasListener
method so that thehandle
method has something more generic (like a model or data class).Hoping this kickstarts a discussion on how we might improve this for Laravel 11 and Laravel Actions.
Anyone have ideas?
Beta Was this translation helpful? Give feedback.
All reactions