protected function callEntityMethod(Request $request, $method)
    {
        // We don't want to include the first argument.
        $args = func_get_args();
        array_shift($args);
        array_shift($args);

        return call_user_func_array([ $this->getEntityClassName(), $method ], $args);
    }
protected function callEntityMethod(Request $request, $method)
    {
        // We don't want to include the first argument.
        $args = func_get_args();
        array_shift($args);
        array_shift($args);

        return call_user_func_array([ $this->getEntityClassName(), $method ], $args);
    }
protected function callEntityMethod ( Request $ request , $ method ) { // We don't want to include the first argument. $ args = func_get_args ( ) ; array_shift ( $ args ) ; array_shift ( $ args ) ; return call_user_func_array ( [ $ this -> getEntityClassName ( ) , $ method ] , $ args ) ; }
Call a static method on the entity.
@param Request $request
@param $method
@return mixed
Call a static method on the entity .