hasPermissionTo($permission, 'web')) { return true; } return $this->responseError([], 'You have no access on this feature', 403); } public function handlePermission($permission) { return $this->checkPermission($permission); } }