src/Support/Serializer.php
protected function resolveSerializerKey($dataset): string
    {
        if ($dataset instanceof BaseCollection || $dataset instanceof Paginator) {
            return Str::plural($this->getKey());
        }

        return $this->getKey();
    }
protected function resolveSerializerKey($dataset): string
    {
        if ($dataset instanceof BaseCollection || $dataset instanceof Paginator) {
            return Str::plural($this->getKey());
        }

        return $this->getKey();
    }
protected function resolveSerializerKey ( $ dataset ) : string { if ( $ dataset instanceof BaseCollection || $ dataset instanceof Paginator ) { return Str :: plural ( $ this -> getKey ( ) ) ; } return $ this -> getKey ( ) ; }
Resolve serializer key.

@param  mixed  $dataset

@return string
Resolve serializer key .