public function deleted(Model $model)
    {
        // Delete corresponding $model document from Elasticsearch
        Queue::push('Iverberk\Larasearch\Jobs\DeleteJob', [get_class($model) . ':' . $model->getKey()]);

        // Update all related model documents to reflect that $model has been removed
        Queue::push('Iverberk\Larasearch\Jobs\ReindexJob', $this->findAffectedModels($model, true));
    }
public function deleted(Model $model)
    {
        // Delete corresponding $model document from Elasticsearch
        Queue::push('Iverberk\Larasearch\Jobs\DeleteJob', [get_class($model) . ':' . $model->getKey()]);

        // Update all related model documents to reflect that $model has been removed
        Queue::push('Iverberk\Larasearch\Jobs\ReindexJob', $this->findAffectedModels($model, true));
    }
public function deleted ( Model $ model ) { // Delete corresponding $model document from Elasticsearch Queue :: push ( 'Iverberk\Larasearch\Jobs\DeleteJob' , [ get_class ( $ model ) . ':' . $ model -> getKey ( ) ] ) ; // Update all related model documents to reflect that $model has been removed Queue :: push ( 'Iverberk\Larasearch\Jobs\ReindexJob' , $ this -> findAffectedModels ( $ model , true ) ) ; }
Model delete event handler

@param Model $model
Model delete event handler