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:

// Basic access
{{ $entry->website }}

Decorator Usage

Strings also provide decorated values.

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

Methods

@todo Generate methods from @docs

Configuration

@todo Generate config options from class::configuration