src/Gateways/ManyToManyGateway.php
public function update($request, $id)
    {
        $model = $this->repository->update($request->all(), $id);
        $event_class = "Acoustep\EntrustGui\Events\\".ucwords($this->getModelName()).'UpdatedEvent';
        $event = new $event_class;
        $this->dispatcher->fire($event->setModel($model));
        return $model;
    }
public function update($request, $id)
    {
        $model = $this->repository->update($request->all(), $id);
        $event_class = "Acoustep\EntrustGui\Events\\".ucwords($this->getModelName()).'UpdatedEvent';
        $event = new $event_class;
        $this->dispatcher->fire($event->setModel($model));
        return $model;
    }
Update model

@param Illuminate\Http\Request $request
@param integer $id

@return Illuminate\Database\Eloquent\Model