public function deleteModels(Models $models)
    {
        foreach ($models as $model) {
            $this->dispatchBeforeEvent($model, Event::DELETE);
        }

        $this->deleteAll()->executeModels($models);

        foreach ($models as $model) {
            $this->dispatchAfterEvent($model, Event::DELETE);
        }

        return $this;
    }
public function deleteModels(Models $models)
    {
        foreach ($models as $model) {
            $this->dispatchBeforeEvent($model, Event::DELETE);
        }

        $this->deleteAll()->executeModels($models);

        foreach ($models as $model) {
            $this->dispatchAfterEvent($model, Event::DELETE);
        }

        return $this;
    }
public function deleteModels ( Models $ models ) { foreach ( $ models as $ model ) { $ this -> dispatchBeforeEvent ( $ model , Event :: DELETE ) ; } $ this -> deleteAll ( ) -> executeModels ( $ models ) ; foreach ( $ models as $ model ) { $ this -> dispatchAfterEvent ( $ model , Event :: DELETE ) ; } return $ this ; }
Call all the events associated with model deletion. Perform the deletion itself.

@param  Models           $models
@return Repo $this
Call all the events associated with model deletion . Perform the deletion itself .