public function onDelete() { $this->logger->log('A new role was deleted.'); }
/** * Raising the event when a user is logging out. * * @param Logout $event */ public function logout(Logout $event) { $this->logger->log(sprintf('A user %s logged out.', Auth::user()->name)); }
public function onCreate(Created $event) { $this->logger->log('A new permissions was create'); $event->addPermissionToSuperAdmin(); }