/** * Add a new permission. * * @param string $permissionName The name of the permission. * @param text $description The description of the permission. * @return void **/ public function addPermission($permissionName, $description) { if (!$this->permissions->exists($permissionName, true)) { return $this->permissions->addPermission($permissionName, $description); } throw new \InvalidArgumentException("Permission doesn't exist or is soft-deleted"); }