Illuminate\Database\Query\Builder::value PHP 메소드

value() 공개 메소드

Get a single column's value from the first result of a query.
public value ( string $column ) : mixed
$column string
리턴 mixed
    public function value($column)
    {
        $result = (array) $this->first([$column]);
        return count($result) > 0 ? reset($result) : null;
    }