public function addMassAction($name, Expression $massAction)
    {
        $model             = $this->getQuery()->getModel();
        $this->massActions = array_merge($this->massActions, (array)
                //event('datatables:' . uri() . ':before.massactions.action.' . $name, [$this->massActions, $model], true)
                event(new BeforeMassActionsAction(uri(), $name, $model, $this->massActions), [], true)
        );
        if (empty($this->massActions)) {
            $this->massActions = [];
        }
        array_push($this->massActions, $massAction);
        $this->massActions = array_merge($this->massActions, (array)
                //event('datatables:' . uri() . ':after.massactions.action.' . $name, [$this->massActions, $model], true);
                event(new AfterMassActionsAction(uri(), $name, $model, $this->massActions), [], true)
        );
        $this->massActions = array_unique($this->massActions);
        return $this;
    }