diff --git a/src/Support/Serializers/SimpleArraySerializer.php b/src/Support/Serializers/SimpleArraySerializer.php new file mode 100644 index 0000000..af42152 --- /dev/null +++ b/src/Support/Serializers/SimpleArraySerializer.php @@ -0,0 +1,27 @@ + + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace Jiannei\Response\Laravel\Support\Serializers; + +class SimpleArraySerializer extends ArraySerializer +{ + /** + * Serialize a collection. + * + * @param string $resourceKey + * @param array $data + * @return array + */ + public function collection($resourceKey, array $data) + { + return $data; + } +}