Laralib\L5scaffold\Validators\SchemaParser::parseSegments PHP Method

parseSegments() private method

Get the segments of the schema field.
private parseSegments ( string $field ) : array
$field string
return array
    private function parseSegments($field)
    {
        $segments = explode(':', $field);
        $name = array_shift($segments);
        $arguments = $segments;
        // Do we have arguments being used here?
        // Like: string(100)
        return compact('name', 'arguments');
    }