diff --git a/composer.json b/composer.json index 6124596..8e23c63 100644 --- a/composer.json +++ b/composer.json @@ -27,10 +27,10 @@ "require": { "php": "^8.0", "guzzlehttp/guzzle": "^7.0.1", - "illuminate/support": "^8.0|^9.0" + "illuminate/support": "^8.0|^9.0|^10.0" }, "require-dev": { - "orchestra/testbench": "^6.0", + "orchestra/testbench": "^6.0|^8.0", "pestphp/pest": "^1.22", "pestphp/pest-plugin-laravel": "^1.3", "phpunit/phpunit": "^9.0" diff --git a/src/Entities/Properties/Property.php b/src/Entities/Properties/Property.php index 6444f97..2ceb17c 100644 --- a/src/Entities/Properties/Property.php +++ b/src/Entities/Properties/Property.php @@ -177,6 +177,7 @@ private static function mapTypeToClass(string $type): string case 'files': case 'formula': case 'rollup': + case 'relation': $class = str_replace('_', '', ucwords($type, '_')); return 'FiveamCode\\LaravelNotionApi\\Entities\\Properties\\'.$class;