public function registerDevice(RegisterDevice $request): JsonResource 	{ 		$user = auth()->user()->user;  		$device = $user->registeredDevices()->create([ 			'product_id' => $request->product_id, 			'purchase_date' => formatLocalTimestamp($request->purchase_date, 'Y-m-d'), 		]);  		$device->storage()->handle();  		return new RegisteredDeviceResource($device); 	}