In case you don't want to handle the SNS events using Laravel Events or simply you can't handle them via Laravel Events, you can handle the methods sent on notification or subscription via controller methods:
useRennokki\LaravelSnsEvents\Http\Controllers\SnsController;classCustomSnsControllerextendsSnsController{/** * Handle logic at the controller level on notification. * * @paramarray $snsMessage * @param\Illuminate\Http\Request $request * @returnvoid */protectedfunctiononNotification(array $snsMessage,Request $request):void {// }/** * Handle logic at the controller level on subscription. * * @paramarray $snsMessage * @param\Illuminate\Http\Request $request * @returnvoid */protectedfunctiononSubscriptionConfirmation(array $snsMessage,Request $request):void {// }}