app/Listeners/MailEventSubscriber.php
/**
     * Register the listeners for the subscriber.
     *
     * @param  \Illuminate\Events\Dispatcher $events
     */
Register the listeners for the subscriber.
@param  \Illuminate\Events\Dispatcher $events
Register the listeners for the subscriber . @param \ Illuminate \ Events \ Dispatcher $events
public function subscribe($events) {
        $events->listen(
            'App\Events\EmailSent',
            'App\Listeners\MailEventSubscriber@onEmailSent'
        );
        $events->listen(
            'App\Events\SendWelcomeEmail',
            'App\Listeners\MailEventSubscriber@onWelcomeEmailSent'
        );
        $events->listen(
            'App\Events\SurveyReportEvent.php',
            'App\Listeners\MailEventSubscriber@onSurveyReportEmailSent'
        );
    }
public function subscribe ( $ events ) { $ events -> listen ( 'App\Events\EmailSent' , 'App\Listeners\MailEventSubscriber@onEmailSent' ) ; $ events -> listen ( 'App\Events\SendWelcomeEmail' , 'App\Listeners\MailEventSubscriber@onWelcomeEmailSent' ) ; $ events -> listen ( 'App\Events\SurveyReportEvent.php' , 'App\Listeners\MailEventSubscriber@onSurveyReportEmailSent' ) ; }
Register the listeners for the subscriber.
Register the listeners for the subscriber .