notificationService = $notificationService; } public function mySendNotification(Request $request) { return 1; $message = $request->input('message'); $response = $this->notificationService->sendNotification($message); return response()->json($response); } }