protected function accessible($observer): bool
    {
        if (!method_exists($observer, 'getAccessor')) {
            return true;
        }

        return in_array(get_class($this->app), (array) $observer::getAccessor());
    }
protected function accessible($observer): bool
    {
        if (!method_exists($observer, 'getAccessor')) {
            return true;
        }

        return in_array(get_class($this->app), (array) $observer::getAccessor());
    }
protected function accessible ( $ observer ) : bool { if ( ! method_exists ( $ observer , 'getAccessor' ) ) { return true ; } return in_array ( get_class ( $ this -> app ) , ( array ) $ observer :: getAccessor ( ) ) ; }
Determine whether the given observer is accessible.

@param string $observer

@return bool
Determine whether the given observer is accessible .