コード例 #1
0
 public function onDelete()
 {
     $this->logger->log('A new role was deleted.');
 }
コード例 #2
0
 /**
  * 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));
 }
コード例 #3
0
 public function onCreate(Created $event)
 {
     $this->logger->log('A new permissions was create');
     $event->addPermissionToSuperAdmin();
 }