validate($request, [ 'message' => 'required|string|min:5|max:500', 'request_response' => 'string|max:3' ]); $message = $request->input('message'); $request_response = $request->input('request_response') == 'on' ? true : false; $user = Auth::user(); return $request->all(); } }