/**
* Register any other events for your application.
*
* @param \Illuminate\Contracts\Events\Dispatcher $events
* @return void
*/
public function boot(DispatcherContract $events)
{
parent::boot($events);
\Event::listen('*', function () {
$event = \Event::firing();
if (starts_with($event, "Uniamo\\Events")) {
// logger("Event fired: " . $event . "\n");
\Cache::flush();
// logger("Cleared cache");
}
});
}