src/Webpage/Traits/HasContent.php
protected function getFirst(string $key, $default = null)
    {
        return collect($this->content->get($key))->first();
    }
protected function getFirst(string $key, $default = null)
    {
        return collect($this->content->get($key))->first();
    }
protected function getFirst ( string $ key , $ default = null ) { return collect ( $ this -> content -> get ( $ key ) ) -> first ( ) ; }
Helper to get the first item within a collection

@param string $key
@param mixed $default
@return mixed
Helper to get the first item within a collection