src/Adapter/VariablesAdapter.php
protected function resolveDataProviderValue($dataProvider)
    {
        preg_match("/(.*)@(.*)/", $dataProvider, $matches);
        if (!isset($matches[1]) and ! isset($matches[2])) {
            return false;
        }
        if (!class_exists($matches[1])) {
            return false;
        }
        try {
            $instance = app($matches[1]);
            $return   = call_user_func_array([$instance, $matches[2]], []);
            if ($return instanceof Builder) {
                return $return->get()->toArray();
            }
            if ($return instanceof Collection) {
                return $return->toArray();
            }
            return $return;
        } catch (Exception $ex) {
            return false;
        }
    }
protected function resolveDataProviderValue($dataProvider)
    {
        preg_match("/(.*)@(.*)/", $dataProvider, $matches);
        if (!isset($matches[1]) and ! isset($matches[2])) {
            return false;
        }
        if (!class_exists($matches[1])) {
            return false;
        }
        try {
            $instance = app($matches[1]);
            $return   = call_user_func_array([$instance, $matches[2]], []);
            if ($return instanceof Builder) {
                return $return->get()->toArray();
            }
            if ($return instanceof Collection) {
                return $return->toArray();
            }
            return $return;
        } catch (Exception $ex) {
            return false;
        }
    }
protected function resolveDataProviderValue ( $ dataProvider ) { preg_match ( "/(.*)@(.*)/" , $ dataProvider , $ matches ) ; if ( ! isset ( $ matches [ 1 ] ) and ! isset ( $ matches [ 2 ] ) ) { return false ; } if ( ! class_exists ( $ matches [ 1 ] ) ) { return false ; } try { $ instance = app ( $ matches [ 1 ] ) ; $ return = call_user_func_array ( [ $ instance , $ matches [ 2 ] ] , [ ] ) ; if ( $ return instanceof Builder ) { return $ return -> get ( ) -> toArray ( ) ; } if ( $ return instanceof Collection ) { return $ return -> toArray ( ) ; } return $ return ; } catch ( Exception $ ex ) { return false ; } }
resolve notification variable value from data provider

@param mixed $dataProvider
@return boolean|Collection
resolve notification variable value from data provider