getMessage(), $e->getCode(), $e); } } public function getAction() { $action = 'can' . ucfirst($this->action); $action = preg_replace('/^canDont/', 'cant', $action); return $action; } public function getHumanizedAction() { return $this->humanize($this->action . ' ' . $this->getHumanizedArguments()); } }