orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

Orchid disable Laravel 11 events autodiscovery #2828

Closed DocLM closed 1 month ago

DocLM commented 2 months ago

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):

Smartphone (please complete the following information):

Server (please complete the following information):

Additional context N/A