$segment->resolve()
Automatically resolves the segment depending on the segment position and the type of the base
$segment->resolve(mixed $base = null, object|array $data = [ ]): mixed
Parameters
Name | Type | Default | Description |
---|---|---|---|
$base | mixed |
null
|
Current value of the query chain |
$data | object orarray |
[ ]
|
Return type
mixed
This method modifies the existing $segment
object it is applied to and returns it again.