URL Type

Overview

The url field type stores a url string.

// streams/example.json
"fields": {
    "website": {
        "type": "url"
    }
}

Data Structure

{
    "website": "https://website.com"
}

Basic value access displays the stored value:

@verbatim// Basic access
{{ $entry->website }}@endverbatim

Decorator Usage

Strings also provide decorated values.

@verbatim// Decorated value
@if ($entry->website)
    {!! $entry->website()->to('Visit Website') !!}
@endif@endverbatim

Methods

@todo Generate methods from @docs

Configuration

@todo Generate config options from class::configuration