src/Model/NotificationContents.php
protected function fires()
    {
        $className = isset($this->notification->classname) ? snake_case(class_basename($this->notification->classname)) : false;

        if (! $className) {
            return [];
        }

        $before = event('notifications:' . $className . '.render.before');
        $after  = event('notifications:' . $className . '.render.after');

        return [
            'before' => !empty($before) ? current($before) : '',
            'after'  => !empty($after) ? current($after) : ''
        ];
    }
protected function fires()
    {
        $className = isset($this->notification->classname) ? snake_case(class_basename($this->notification->classname)) : false;

        if (! $className) {
            return [];
        }

        $before = event('notifications:' . $className . '.render.before');
        $after  = event('notifications:' . $className . '.render.after');

        return [
            'before' => !empty($before) ? current($before) : '',
            'after'  => !empty($after) ? current($after) : ''
        ];
    }
protected function fires ( ) { $ className = isset ( $ this -> notification -> classname ) ? snake_case ( class_basename ( $ this -> notification -> classname ) ) : false ; if ( ! $ className ) { return [ ] ; } $ before = event ( 'notifications:' . $ className . '.render.before' ) ; $ after = event ( 'notifications:' . $ className . '.render.after' ) ; return [ 'before' => ! empty ( $ before ) ? current ( $ before ) : '' , 'after' => ! empty ( $ after ) ? current ( $ after ) : '' ] ; }
fires events for notification template

@return array
fires events for notification template