public function create($data)
    {
        $data = $this->sanitizeData((array)$data);
        return $this->getRepository()->create($data);
    }
public function create($data)
    {
        $data = $this->sanitizeData((array)$data);
        return $this->getRepository()->create($data);
    }
public function create ( $ data ) { $ data = $ this -> sanitizeData ( ( array ) $ data ) ; return $ this -> getRepository ( ) -> create ( $ data ) ; }
Create a resource

@param  mixed $data
@return ApiProblem|mixed
Create a resource