You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.env is set like this to make sure to support single Database and to use auto-identification
Adding following lines in AppServiceProvider.php to trigger the Hyn Events
public function boot()
{
CustomValidationRules::init();
$environment = $this->app->make(\Hyn\Tenancy\Environment::class);
$website = \Hyn\Tenancy\Facades\TenancyFacade::website();
// Now switch the environment to a new tenant.
$environment->tenant($website);
}
I created a listener and updated the $listener array for mapping in EventServiceProvider.php
Description
Hyn/Multi-tenant 5.3.1 Events not triggering User defined Listener in Laravel 5.7
I have following tenancy setup
in
.env
.env is set like this to make sure to support single Database and to use auto-identification
Adding following lines in
AppServiceProvider.php
to trigger the Hyn EventsI created a listener and updated the
$listener
array for mapping in EventServiceProvider.phpActual behavior
All internal listeners belonging to Hyn Package are triggered, but
\App\Listeners\TenantConfigLoadListener
is not triggered...
Expected behavior
\App\Listeners\TenantConfigLoadListener
is should be triggered when\Hyn\Tenancy\Events\Websites\Switched
Event is triggered,..
Information
tenancy.php config
unchanged, using default
webserver.php config
unchanged, using default
The text was updated successfully, but these errors were encountered: