src/Mappable.php
protected function pluckMapped(Builder $query, ArgumentBag $args, $table, $column)
    {
        $query->select("{$table}.{$column}");

        if (!is_null($args->get('key'))) {
            $this->mappedSelectListsKey($query, $args->get('key'));
        }

        $args->set('column', $column);

        return $query->callParent('pluck', $args->all());
    }
protected function pluckMapped(Builder $query, ArgumentBag $args, $table, $column)
    {
        $query->select("{$table}.{$column}");

        if (!is_null($args->get('key'))) {
            $this->mappedSelectListsKey($query, $args->get('key'));
        }

        $args->set('column', $column);

        return $query->callParent('pluck', $args->all());
    }
protected function pluckMapped ( Builder $ query , ArgumentBag $ args , $ table , $ column ) { $ query -> select ( "{$table}.{$column}" ) ; if ( ! is_null ( $ args -> get ( 'key' ) ) ) { $ this -> mappedSelectListsKey ( $ query , $ args -> get ( 'key' ) ) ; } $ args -> set ( 'column' , $ column ) ; return $ query -> callParent ( 'pluck' , $ args -> all ( ) ) ; }
Get an array with the values of given mapped attribute.

@param  \Sofa\Eloquence\Builder $query
@param  \Sofa\Hookable\Contracts\ArgumentBag $args
@param  string $table
@param  string $column
@return array
Get an array with the values of given mapped attribute .