stancl / tenancy-docs

stancl/tenancy docs & website
https://tenancyforlaravel.com/docs
MIT License
64 stars 627 forks source link

Suggest adding event listeners to `events()` in TenancyServiceProvider #199

Closed lukinovec closed 2 years ago

lukinovec commented 2 years ago

@stancl, I found only one relevant instance of recommending to put Event::listen(TenancyEvent::class, ...) in the AppServiceProvider (there's also the "prevent Passport migrations from running in the central app" one, but I don't think that's relevant because it's correct to place that in the AppServiceProvider). I made it suggest adding the listener to events() in the TenancyServiceProvider.

stancl commented 2 years ago

Thanks!