[ 'App\Listeners\LogSuccessfulLogin', ], 'Illuminate\Auth\Events\Failed' => [ 'App\Listeners\LogFailedLogin', ], ]; /** * The subscriber classes to register. * * @var array */ protected $subscribe = [ LogListener::class, CheckoutableListener::class ]; /** * Register any events for your application. * * @return void */ public function boot() { parent::boot(); /** * Clear the LDAP settings cache when the settings model is saved */ Event::listen(SettingSaved::class, function () { Cache::forget(Setting::APP_SETTINGS_KEY); Cache::forget(Setting::SETUP_CHECK_KEY); }); } }