public function update(UpdateProfile $request): JsonResource 	{ 		$user = $request->user();  		$user->update([ 			'name' => $request->name, 			'email' => $request->email, 			'allow_push_notifications' => $request->boolean('allow_push_notifications'), 		]);  		$user->user->update($user->user->updateProfileLogic($request));  		return $user->getModelResource(); 	}