src/Repositories/AbstractEloquentRepository.php
protected function fireEvent($event, $data)
    {
        $fireableEvent = isset($this->fireEvents[$event]) ? $this->fireEvents[$event] : null;

        if (! is_null($fireableEvent)) {
            return $this->event->fire($fireableEvent, $data);
        }

        return null;
    }
protected function fireEvent($event, $data)
    {
        $fireableEvent = isset($this->fireEvents[$event]) ? $this->fireEvents[$event] : null;

        if (! is_null($fireableEvent)) {
            return $this->event->fire($fireableEvent, $data);
        }

        return null;
    }
protected function fireEvent ( $ event , $ data ) { $ fireableEvent = isset ( $ this -> fireEvents [ $ event ] ) ? $ this -> fireEvents [ $ event ] : null ; if ( ! is_null ( $ fireableEvent ) ) { return $ this -> event -> fire ( $ fireableEvent , $ data ) ; } return null ; }
Fire off an event if one is defined.

@param  string  $event
@param  array   $data
@return mixed
Fire off an event if one is defined .