public function encoded()
    {
        $mentions = $this->get();
        $encoded = collect();

        foreach ($mentions as $mention) {
            $pool = $this->mention->pool($mention);
            $encoded->push("{$pool->key}:{$mention->getKey()}");
        }

        return $encoded->implode(',');
    }
public function encoded()
    {
        $mentions = $this->get();
        $encoded = collect();

        foreach ($mentions as $mention) {
            $pool = $this->mention->pool($mention);
            $encoded->push("{$pool->key}:{$mention->getKey()}");
        }

        return $encoded->implode(',');
    }
public function encoded ( ) { $ mentions = $ this -> get ( ) ; $ encoded = collect ( ) ; foreach ( $ mentions as $ mention ) { $ pool = $ this -> mention -> pool ( $ mention ) ; $ encoded -> push ( "{$pool->key}:{$mention->getKey()}" ) ; } return $ encoded -> implode ( ',' ) ; }
Gets the mentions as an encoded string for use in form fields.

@return any
Gets the mentions as an encoded string for use in form fields .