option('user_id'); if(!empty($uids)) { $return = []; $caObj = new ConsumerApplicationController(); foreach ($uids as $uid) { $request = [ 'type' => 'merchant_user', 'id' => $uid, 'notification_type' => "application", 'title' => "Applications won't be approved", 'body' => "Please note that applications won't be approved. Please connect with the Credit Fair team for more details." ]; new FCMNotification(new Request($request)); } //print_r($return); return Utility::handlerSendSuccess($return,Lang::get('message.exec_success')); } else { return Utility::handlerSendFailed([\Config::get("constants.txt.txt_errors") => ['mids are missing']]); } } }