/** * Was the event invoked by the current user? * * @return bool */ public function wasByCurrentUser() { return $this->credentials->check() && $this->credentials->getUser()->id == $this->wrappedObject->user_id; }
/** * Was the event invoked by the current user? * * @return bool */ public function wasByCurrentUser() { return $this->credentials->check() && $this->credentials->getUser()->id == $this->wrappedObject->user_id; }