vendor/laravel/framework/src/Illuminate/Support/Collection.php
/**
     * Get a value retrieving callback.
     *
     * @param  string  $value
     * @return callable
     */
Get a value retrieving callback.
@param  string  $value
@return callable
Get a value retrieving callback . @param string $value @return callable
protected function valueRetriever($value)
    {
        if ($this->useAsCallable($value)) {
            return $value;
        }
        return function ($item) use ($value) {
            return data_get($item, $value);
        };
    }
protected function valueRetriever ( $ value ) { if ( $ this -> useAsCallable ( $ value ) ) { return $ value ; } return function ( $ item ) use ( $ value ) { return data_get ( $ item , $ value ) ; } ; }
Get a value retrieving callback.
Get a value retrieving callback .