authorize('customerBelongsToService', $customer); $question = Question::find($request->validated('question')); $customer->answers()->detach($question->answers); $customer->answers()->attach($request->validated('answers')); return response()->json(); } }