Auth::user()->account_id, 'author_id' => Auth::id(), 'user_notification_channel_id' => $userNotificationChannelId, ]; $channel = (new ToggleUserNotificationChannel())->execute($data); return response()->json([ 'data' => NotificationsIndexViewHelper::dtoEmail($channel), ], 200); } }