public function process(Request $request)
    {
        $action = $request->get('action');

        if (! in_array($action, $this->actions)) {
            throw new DataTablesEditorException('Requested action not supported!');
        }

        return $this->{$action}($request);
    }
public function process(Request $request)
    {
        $action = $request->get('action');

        if (! in_array($action, $this->actions)) {
            throw new DataTablesEditorException('Requested action not supported!');
        }

        return $this->{$action}($request);
    }
public function process ( Request $ request ) { $ action = $ request -> get ( 'action' ) ; if ( ! in_array ( $ action , $ this -> actions ) ) { throw new DataTablesEditorException ( 'Requested action not supported!' ) ; } return $ this -> { $ action } ( $ request ) ; }
Process dataTables editor action request.

@param Request $request
@return JsonResponse|mixed
@throws DataTablesEditorException
Process dataTables editor action request .