protected function fireCustomModelEvent($event, $method)
    {
        if (! isset($this->dispatchesEvents[$event])) {
            return;
        }

        $result = static::$dispatcher->$method(new $this->dispatchesEvents[$event]($this));

        if (! is_null($result)) {
            return $result;
        }
    }
protected function fireCustomModelEvent($event, $method)
    {
        if (! isset($this->dispatchesEvents[$event])) {
            return;
        }

        $result = static::$dispatcher->$method(new $this->dispatchesEvents[$event]($this));

        if (! is_null($result)) {
            return $result;
        }
    }
protected function fireCustomModelEvent ( $ event , $ method ) { if ( ! isset ( $ this -> dispatchesEvents [ $ event ] ) ) { return ; } $ result = static :: $ dispatcher -> $ method ( new $ this -> dispatchesEvents [ $ event ] ( $ this ) ) ; if ( ! is_null ( $ result ) ) { return $ result ; } }
Fire a custom model event for the given event.

@param  string  $event
@param  string  $method
@return mixed|null
Fire a custom model event for the given event .