Skip to content
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

Orchid disable Laravel 11 events autodiscovery #2828

Closed
DocLM opened this issue May 2, 2024 · 0 comments · Fixed by #2829
Closed

Orchid disable Laravel 11 events autodiscovery #2828

DocLM opened this issue May 2, 2024 · 0 comments · Fixed by #2829
Assignees
Labels

Comments

@DocLM
Copy link
Contributor

DocLM commented May 2, 2024

Describe the bug
Laravel 11 discover events and listeners by default looking to app/Listeners directory.
After installing Orchid events autodiscovery stop working.

To Reproduce
Steps to reproduce the behavior:

  1. Create an empty Laravel 11 project;
  2. Add Orchid to the project;
  3. Create an example event with php artisan make:event PodcastProcessed;
  4. Create an example listener with php artisan make:listener SendPodcastNotification --event=PodcastProcessed;
  5. Run php artisan event:list: no SendPodcastNotification or PodcastProcessed reference

Expected behavior
Laravel 11 events auto discovery working as out of the box.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: N/A
  • Browser: N/A
  • Version: N/A

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser N/A
  • Version N/A

Server (please complete the following information):

  • Platfrom Version: 14.23.0
  • Laravel Version: 11
  • PHP Version: 8.3
  • Database: N/A
  • Database Version: N/A

Additional context
N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants