src/Concerns/HasHttpAssertions.php
public function assertCreatedWithServerId(string $expectedLocation, $expected, bool $strict = true): self
    {
        $this->document = HttpAssert::assertCreatedWithServerId(
            $this->getStatusCode(),
            $this->getContentType(),
            $this->getContent(),
            $this->getLocation(),
            $expectedLocation,
            $this->identifier($expected),
            $strict
        );

        return $this;
    }
public function assertCreatedWithServerId(string $expectedLocation, $expected, bool $strict = true): self
    {
        $this->document = HttpAssert::assertCreatedWithServerId(
            $this->getStatusCode(),
            $this->getContentType(),
            $this->getContent(),
            $this->getLocation(),
            $expectedLocation,
            $this->identifier($expected),
            $strict
        );

        return $this;
    }
Assert that a resource was created with a server generated id.

@param string $expectedLocation
the expected location without the id.
@param UrlRoutable|string|int|array $expected
@param bool $strict
@return $this