src/ActionsManager.php
public function exec($method, array $arguments = [])
    {
        // execute custom action
        if (starts_with($method, 'action::')) {
            $handler = $this->scaffoldActions()->find(
                str_replace('action::', '', $method)
            );

            return call_user_func_array([$handler, 'handle'], $arguments);
        }

        // Execute batch action
        if (starts_with($method, 'batch::')) {
            $handler = $this->scaffoldBatch()->find(
                str_replace('batch::', '', $method)
            );

            return call_user_func_array([$handler, 'handle'], $arguments);
        }

        // Execute CRUD action
        return call_user_func_array([$this->service, $method], (array) $arguments);
    }
public function exec($method, array $arguments = [])
    {
        // execute custom action
        if (starts_with($method, 'action::')) {
            $handler = $this->scaffoldActions()->find(
                str_replace('action::', '', $method)
            );

            return call_user_func_array([$handler, 'handle'], $arguments);
        }

        // Execute batch action
        if (starts_with($method, 'batch::')) {
            $handler = $this->scaffoldBatch()->find(
                str_replace('batch::', '', $method)
            );

            return call_user_func_array([$handler, 'handle'], $arguments);
        }

        // Execute CRUD action
        return call_user_func_array([$this->service, $method], (array) $arguments);
    }
public function exec ( $ method , array $ arguments = [ ] ) { // execute custom action if ( starts_with ( $ method , 'action::' ) ) { $ handler = $ this -> scaffoldActions ( ) -> find ( str_replace ( 'action::' , '' , $ method ) ) ; return call_user_func_array ( [ $ handler , 'handle' ] , $ arguments ) ; } // Execute batch action if ( starts_with ( $ method , 'batch::' ) ) { $ handler = $ this -> scaffoldBatch ( ) -> find ( str_replace ( 'batch::' , '' , $ method ) ) ; return call_user_func_array ( [ $ handler , 'handle' ] , $ arguments ) ; } // Execute CRUD action return call_user_func_array ( [ $ this -> service , $ method ] , ( array ) $ arguments ) ; }
Call handler method.

@param       $method
@param array $arguments

@return mixed
Call handler method .