diff --git a/composer.json b/composer.json index 9e7d906..02d32e6 100644 --- a/composer.json +++ b/composer.json @@ -19,6 +19,7 @@ "php": "^8.1", "illuminate/contracts": "^10.0", "sammyjo20/saloon": "^2.0", + "spatie/laravel-data": "^3.2", "spatie/laravel-package-tools": "^1.14.0" }, "require-dev": { diff --git a/src/Data/Requests/BasketData.php b/src/Data/Requests/BasketData.php new file mode 100644 index 0000000..588943e --- /dev/null +++ b/src/Data/Requests/BasketData.php @@ -0,0 +1,27 @@ +transform(); + + return array_filter($array, function ($array) { + return ! is_null($array); + }); + } +} diff --git a/src/Data/Requests/ItemData.php b/src/Data/Requests/ItemData.php new file mode 100644 index 0000000..f63f80e --- /dev/null +++ b/src/Data/Requests/ItemData.php @@ -0,0 +1,16 @@ +