public static function subscribe($subscriber) { \Illuminate\Events\Dispatcher::subscribe($subscriber); }
/** * イベントハンドラーをSubscriberに登録 */ protected function registerSubscriber() { // メール送信イベントハンドラー if (config('notification.enabled')) { \Event::subscribe('\\Owl\\Handlers\\Events\\EmailNotification'); } }