src/Support/Concerns/Observable.php
protected function fireObservableEvent(string $event, bool $halt)
    {
        if (! isset(static::$dispatcher)) {
            return true;
        }

        $className = \get_class($this);
        $event = $this->getObservableKey($event);

        $method = $halt ? 'until' : 'handle';

        return static::$dispatcher->$method("{$event}: {$className}", $this);
    }
protected function fireObservableEvent(string $event, bool $halt)
    {
        if (! isset(static::$dispatcher)) {
            return true;
        }

        $className = \get_class($this);
        $event = $this->getObservableKey($event);

        $method = $halt ? 'until' : 'handle';

        return static::$dispatcher->$method("{$event}: {$className}", $this);
    }
protected function fireObservableEvent ( string $ event , bool $ halt ) { if ( ! isset ( static :: $ dispatcher ) ) { return true ; } $ className = \ get_class ( $ this ) ; $ event = $ this -> getObservableKey ( $ event ) ; $ method = $ halt ? 'until' : 'handle' ; return static :: $ dispatcher -> $ method ( "{$event}: {$className}" , $ this ) ; }
Fire the given event.

@param  string  $event
@param  bool    $halt

@return mixed
Fire the given event .